How to Display Meta Description in WordPress using Yoast and GeneratePress
In a WordPress post, the meta description plays a major role in better CTR (Click-through-rate). Yoast provides a decent way to add it using its free plugin. This is visible in the source code of the page.
Related Post –
GeneratePress is a light-weight theme. Additional features can be added on installing the GP Premium plugin. Elements is one of these items. Just enable it to implement them.
But users cannot see the Yoast meta description in the front-end. Search engines may or may not display this information. But with the help of PHP code, you can easily add this info below the title post.
This makes sure, though not 100%, that it is visible in the search engines. Also, one of the Google guidelines is to display all meta info to the user and hide no information. You can also add styling to this meta description.
Related Post –
In this tutorial we are going to see how to display Yoast meta description below the post title using GeneratePress theme and elements.
How to Show Meta Description below Post Title in WordPress
In this section, you can learn the steps to display yoast meta description after post title in generatepress theme. This can be done using the hook element and php code. Decide the location on whether to show on posts or all singular items.
Total Time Needed :
You can also watch this video on how to show meta description to the WordPress post and display it to the visitor.
How to Show on Other Themes
You can make changes to the above code based on your theme requirement.
Most likely you just have to add this PHP code with help of a plugin or using your theme functions.
Since the Yoast code is universal, it should work on other WordPress themes. Though there are new ways to implement the same, this is an easy and working method.