-
AuthorPosts
-
December 3, 2024 at 11:01 pm #1472830
Hi there, we are using the Yoast SEO plugin to craft custom meta descriptions for blog posts. We are also using the excerpt field to write custom excerpts that display on page. Doing so has resulted in us getting warnings (in ahrefs.com) that our posts have two meta descriptions. How can I continue to use the excerpt and SEO meta description fields and to display the excerpt in the blog post widget but remove the meta description tag so that Google doesn’t see two meta descriptions?
December 4, 2024 at 11:33 am #1472895Hey williamslyd,
Thank you for the inquiry.
What happens when you add this hook?
add_action('wp_head', function () { remove_action('wp_head', 'wp_no_robots'); remove_action('wp_head', 'wp_generator'); remove_action('wp_head', 'wp_robots'); });
This should disable the default rendering of meta robots tags.
Best regards,
IsmaelDecember 4, 2024 at 3:46 pm #1472922Thanks for your response. I don’t want to block all bots. Basically, I want to tell Google to use the meta description generated by the Yoast plugin not the WordPress excerpt. Right now, Google sees the post excerpt AND the meta description entered into the meta description field in the Yoast plugin section of the backend of the post as a meta description. So it reads TWO meta descriptions. This is what I am trying to do: https://wordpress.org/support/topic/how-to-remove-theme-generated-meta-description-from-the-website/
December 5, 2024 at 6:29 am #1472970Hi,
Thank you for the update.
Where do you see the meta description? This the only meta description that we can see in the page:
<meta name="description" content="The War Horse is an award-winning nonprofit newsroom educating the public on the military through military news, forums, and writing seminars.">
And another for open graph meta, which is different from the meta description:
<meta property="og:description" content="The War Horse is an award-winning nonprofit newsroom educating the public on the military through military news, forums, and writing seminars.">
Would you mind providing a screenshot? You can use platforms like Savvyify, Imgur or Dropbox to upload and share the screenshot. Here are the steps to follow:
1.) Visit the website of your chosen platform, such as Savvyify, Imgur or Dropbox.
2.) Locate the option to upload a file or an image.
3.) Select the screenshot file from your computer or device and upload it to the platform.
4.) After the upload is complete, you will be provided with a shareable link or an embed code.
5.) Copy the link or code and include it in your message or response to provide us with the screenshot.Thank you for taking the time to share the screenshot. It will help us better understand the issue you’re facing and provide appropriate assistance.
Best regards,
IsmaelDecember 5, 2024 at 6:31 am #1472971 -
AuthorPosts
- You must be logged in to reply to this topic.