- This topic has 29 replies, 3 voices, and was last updated 3 years, 3 months ago by
David.
-
AuthorPosts
-
January 14, 2023 at 9:41 pm #2495899
Manuela
Hi
The SEO report indicates that the blog headline (h1) is missing. But, the H1 title is in every post.🤔
Merci for the help
Manuela 🙂
January 15, 2023 at 4:30 am #2496075David
StaffCustomer SupportHi there,
your Blog page is not displaying a H1 Title.
Add this PHP Snippet to your site:add_filter( 'generate_site_title_output', function( $output ) { return sprintf( '<%1$s class="main-title" itemprop="headline"> <a href="%2$s" rel="home"> %3$s </a> </%1$s>', ( ( is_front_page() && is_home() ) || is_home() ) ? 'h1' : 'p', esc_url( apply_filters( 'generate_site_title_href', home_url( '/' ) ) ), get_bloginfo( 'name' ) ); });it will make it so the Site Title gets the H1 tag.
January 17, 2023 at 2:39 am #2498583Manuela
Hi David
In the Content-Single.php or in the Single.php?
January 17, 2023 at 5:19 am #2498735David
StaffCustomer SupportAre you using a Child Theme?
If yes, then it goes in the Child Theme > functions.php
If No, then use the Code Snippets plugin ( link in doc below ) and Add New Snippet to add the code.More info here on adding PHP:
https://docs.generatepress.com/article/adding-php/January 18, 2023 at 7:27 am #2500210Manuela
Hi David
Merci for the plugin.
I installed it on WordPress and reinserted the code. I have selected “Run snippet everywhere”.
But, the problem is not solved, because the SEO tool shows the following: See private area.
What else do I have to adjust?
Thank you Manuela
January 18, 2023 at 8:57 am #2500491David
StaffCustomer SupportThose all look like Single Posts, which should automatically display your Post Content Title as the H1.
There are 2 places those can be disabled:
1. In the individual posts Post editor -> Disable Elements meta box:
https://docs.generatepress.com/article/layout-metabox-overview/
2. in a GP Element -> Layout found in Appearance > Elements.
Can you check to see if any of those have the Content Title disabled ?
January 18, 2023 at 9:36 am #2500537Manuela
Hi David
I have checked point 1 and 2, unfortunately still without a solution.
I am also surprised, as I already have experience with some themes. But the H1 has never been an error in the SEO report, as it is always crawlable. It is a mystery to me.
January 18, 2023 at 9:45 am #2500550David
StaffCustomer SupportCould i get a temporary admin login to the site ? I can then take a closer look .
January 18, 2023 at 9:50 am #2500557Manuela
Hi David, of course. Then I only need an email address for access. Thank you.
January 18, 2023 at 10:50 am #2500602Manuela
Hallo David
It is the Single Layout element, because the removed site header from single post layout. (Datum der Veröffentlichung: 28. Sep. 2020 um 22:14 Uhr)
If I set the element to draft,
– then the header of the blog post appears twice in each blog post,
– and the header from the page also appears.January 18, 2023 at 5:21 pm #2500856Fernando Customer Support
Hi Manuela,
Here’s an email you can use: support@generatepress.com
Please use the Private Information field to share the credentials afterward: https://docs.generatepress.com/article/using-the-premium-support-forum/#private-information
We’ll check your structure and see what can be done with the Layout Element you have.
January 19, 2023 at 12:14 am #2501098Manuela
Hi Fernando
Ich habe Euch als Benutzer mit der E-Mail-Adresse “support@generatepress.com” angelegt.
Merci for your help.
Manuela
January 19, 2023 at 12:25 am #2501103Fernando Customer Support
Hi Manuela,
Thank you! Can you set a password for the account and share the credentials here through the Private Information field?
January 19, 2023 at 12:36 am #2501106Manuela
Hi Fernando, view private Information. 🙂
January 19, 2023 at 12:39 am #2501108Manuela
Hello Fernando, I hope it works. Otherwise I delete the previously created account and create a new user role again.
-
AuthorPosts
- You must be logged in to reply to this topic.