- This topic has 15 replies, 3 voices, and was last updated 3 years, 9 months ago by
Tom.
-
AuthorPosts
-
July 4, 2017 at 3:39 am #343895
Fernando
Hi!
I want to change the h6 of the breadcrumbs to div (normal text), and I do not see how to modify it.
To have the reference, the page for example in question is this: https://www.jmpacheco.com/mejores-editores-video-profesionales/GeneratePress 1.3.48GP Premium 1.3.1July 4, 2017 at 7:59 am #344005Leo
StaffCustomer SupportHi there,
Normal text as in same as the body?
If so try this CSS:
h6 { color: #666; font-family: "Lato",Sans-serif; font-weight: 300; font-size: 18px; }
Adding CSS: https://docs.generatepress.com/article/adding-css/
Let me know.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/July 4, 2017 at 9:02 am #344044Tom
Lead DeveloperLead DeveloperI’m not seeing any H6 elements in the breadcrumbs?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentJuly 4, 2017 at 9:07 am #344046Fernando
Yes, just above the comments and sharing buttons. Look
July 4, 2017 at 9:25 am #344056Leo
StaffCustomer SupportThe post navigation?
Try this instead:
.post-navigation { color: #666; font-family: "Lato",Sans-serif; font-weight: 300; font-size: 18px; }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/July 4, 2017 at 9:59 am #344069Tom
Lead DeveloperLead DeveloperThe h6 you’re seeing is actually the screen reader text, which makes your site more accessible to people who need it.
The actual links are divs and spans.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentJuly 5, 2017 at 1:03 am #344372Fernando
If you inspect the post with the extension “Web developer” of Chrome, you will see that it detects the navigation of entries as h6, and that is why I want to change it, because I do not have any h5 and directly to h6 is an SEO error.
July 5, 2017 at 9:35 am #344537Tom
Lead DeveloperLead DeveloperThe only h6 is the screen read text: https://www.screencast.com/t/A4zttKNxHtx
Are you seeing something different?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentJuly 6, 2017 at 2:30 am #344908Fernando
Yes , im seeing this:
I suppose it’s from Yoast breadcrumbs, but I don’t know how to change it.
July 6, 2017 at 9:45 am #345104Tom
Lead DeveloperLead DeveloperYour screenshot is showing the same thing as I mentioned – the H6 is for screen readers which is important.
It’s possible that other elements on your site are using h6 – maybe breadcrumbs. You’d have to check the HTML.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentJuly 7, 2017 at 2:24 am #345484Fernando
Yes, that’s what I say. And how can I change that h6 to h4 or div? Is that for SEO you can’t have a h6 if you do not have an h5 before for example.
July 7, 2017 at 9:38 am #345651Tom
Lead DeveloperLead DeveloperYou would have to overwrite this entire function: https://github.com/tomusborne/generatepress/blob/1.3.48/inc/template-tags.php#L11-L69
I don’t typically suggest doing this, but if you copy that entire function and add it to your child theme/custom plugin, you can edit it.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentJuly 10, 2017 at 1:39 am #346833Fernando
Do I have to copy only the shaded lines in yellow? Lines 11 to 69? In what file do I have to copy them? Why do not you recommend doing it?
July 10, 2017 at 9:37 am #347084Tom
Lead DeveloperLead DeveloperYea, you’d copy that entire function and then make your changes: https://docs.generatepress.com/article/adding-php/
I don’t recommend overwriting functions, as you won’t get any updates to the function that I may make in the future.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentJuly 16, 2017 at 5:08 am #350091Fernando
Ok, so I don’t do anything, and I hope that you incorporate it into some update.
-
AuthorPosts
- You must be logged in to reply to this topic.