- This topic has 12 replies, 5 voices, and was last updated 9 months, 1 week ago by
Leo.
-
AuthorPosts
-
September 3, 2019 at 2:03 am #999746
siddharth
Blog page missing H1 tag. SEO tools showing error that h1 tag absent on blog page.
September 3, 2019 at 2:30 am #999761Anil
Make site title visible, then h1 available …………
September 3, 2019 at 2:32 am #999763Anil
i faced same issue….
if you don’t want site title visble, then hide with css – use display none for site title class….
This is a small snag in GP !!!
September 3, 2019 at 2:55 am #999773siddharth
site title is visible…still H1 tag not showing
September 3, 2019 at 4:09 am #999819David
StaffCustomer SupportHi there,
add this PHP snippet and it will make your Site Title the H1 on the blog page:
add_filter( 'generate_site_title_output', function() { return sprintf( '<%1$s class="main-title" itemprop="headline"> <a href="%2$s" rel="home"> %3$s </a> </%1$s>', ( is_home() ) ? 'h1' : 'p', esc_url( apply_filters( 'generate_site_title_href', home_url( '/' ) ) ), get_bloginfo( 'name' ) ); } );
I’ll have a word with Tom to see if there is anything to make this happen automatically on a separate Blog page
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/September 3, 2019 at 5:14 am #999852siddharth
Thanks David…Let me know if this happen automatically.
September 3, 2019 at 5:32 am #999853David
StaffCustomer SupportIf you add the code it will automatically add H1 around your Site Title ( in the Navigation Bar )
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/September 3, 2019 at 11:43 am #1000269Anil
Dear David,
Please guide me to put h1 on home page around site logo at https://evidencebasedhomeopathy.com/Regards.
September 3, 2019 at 12:26 pm #1000302Leo
StaffCustomer SupportIt’s not possible to add an
<h1>
tag for the logo image unfortunately as it’s not text.Couple solutions that might work for you:
– Instead of using a logo image that includes the logo and site title, you can consider having them separated and use the Place logo next to title option:
https://docs.generatepress.com/article/place-logo-next-to-title/– Add a header element that has
<h1>
in it:
https://docs.generatepress.com/article/header-element-overview/Let me know π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/September 3, 2019 at 12:51 pm #1000316Anil
Thanks it works π
September 3, 2019 at 12:59 pm #1000326Leo
StaffCustomer SupportAwesome π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/June 1, 2020 at 6:26 am #1309806guevara
June 1, 2020 at 10:06 am #1310129Leo
StaffCustomer SupportSounds like you’d need the second option here:
https://generatepress.com/forums/topic/blog-page-missing-h1-tag/#post-1000302If you need further help on this, please open a new topic.
Thanks!
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/ -
AuthorPosts
- You must be logged in to reply to this topic.