Archived topic
Google Snippet " Interesting Finds"
11 replies · Started by Sam on May 14, 2021
Hello,
I've noticed after switching to this theme, the snippets I appear for in Google under interesting finds are pulling from the comment section. So instead of the title, it will say, "22 thoughts on "title".
I use Yoast for indexing. Do you know why this might be happening?
Thanks,
Sam
Hi there,
can you share a link to a post where this is happening ?
Sure thing- shared below.
Thank you,
Sam
Hmm, I can't think of why they would be pulling that title (an <h3>) over the post title (an <h1>). The theme itself isn't doing anything special when it comes to this.
How can we see your results in the "Interesting Finds" section? Any specific keywords?
Try these keywords below - you will have to look on mobile. Thanks for looking into this!
Hmm, I'm not seeing "Interesting Finds", but I am seeing your page being indexed without any issues. Should Interesting Finds be showing up just with a regular search on mobile?
David found this - not sure if it's relevant: https://www.elevated.com/when-wordpress-googles-algorithm-go-wrong/
Hello Tom,
It usually shows up with a regular mobile search on google, but it is a part of Google Discover, so they might not show up depending on the country (maybe).
That is an interesting article David found. Maybe this is the issue going on that I will have to look into. Do you know how I could get to that php code to check?
Thanks,
Sam
That could be why I'm not seeing it. I wonder if a good first step would be checking with Yoast - maybe they've seen this sort of thing before?
Good idea, I noticed another blog recently pulling the title from the comments too. It might be a yoast issue, or a new google update that we don't yet know about.
My host went into the theme code and removed "x thoughts" so it will just show the title since it seems google wants to pull from that heading, until I figure out a new solution.
Thanks again, Tom!
If you'd like to do that without changing the parent theme code, you can use a filter:
add_filter( 'generate_comments_title_output', '__return_empty_string' );
Another option would be to change the <h3> to something else:
add_filter( 'generate_comments_title_output', function( $output, $comments_title ) {
return sprintf(
'<p class="comments-title">%s</p>',
esc_html( $comments_title )
);
}, 10, 2 );
That may prevent Google from using it.
Thank you, I will look into it!
No problem!