seo meta description issue in google search
This is my first time to use Yoast SEO plugin in my website, I'm trying to add meta description to every pages and every post in my website.
When I search it on google, seems like the meta description does not show at all, instead google take the content from the website page as the meta description.
When I looked at the page source, there is a content that I set in Yoast SEO as my meta description
this is my website
I already change tag in my page to be like this to match with the SEO
<title><?php if ( is_category() ) {
echo 'Category Archive for "'; single_cat_title(); echo '" | '; bloginfo( 'name' );
} elseif ( is_tag() ) {
echo 'Tag Archive for "'; single_tag_title(); echo '" | '; bloginfo( 'name' );
} elseif ( is_archive() ) {
wp_title(''); echo ' Archive | '; bloginfo( 'name' );
} elseif ( is_search() ) {
echo 'Search for "'.wp_specialchars($s).'" | '; bloginfo( 'name' );
} elseif ( is_home() || is_front_page() ) {
bloginfo( 'name' ); echo ' | '; bloginfo( 'description' );
} elseif ( is_404() ) {
echo 'Error 404 Not Found | '; bloginfo( 'name' );
} elseif ( is_single() ) {
wp_title('');
} else {
echo wp_title( ' | ', false, right ); bloginfo( 'name' );
} ?>
</title>
Is there any reference that can explain/help me to make the meta description work?
Is there any settings that I need to change from the plugin section?
I also have a question for meta description template from the plugin page, do I just leave it blank or should I add some variables?
Answer
This is expected behavior. It's best to think of the meta description as a default or a fallback in the absence of more relevant page content. Google is most concerned with delivering content that is of most relevance to a user's specific search and will always use the actual page content when it can to show users what to expect if they visit the page. The old model, of displaying the meta description in search results, is a relic from a time when the web was catalogued more like a massive directory. There's ample info on this but I recommend checking out Matt Cutts' videos for related info.
Related Questions
- → "failed to open stream" error when executing "migrate:make"
- → October CMS Plugin Routes.php not registering
- → OctoberCMS Migrate Table
- → OctoberCMS Rain User plugin not working or redirecting
- → October CMS Custom Mail Layout
- → October CMS - How to correctly route
- → October CMS create a multi select Form field
- → October CMS - Conditionally Load a Different Page
- → How to disable assets combining on development in OctoberCMS
- → October CMS - Radio Button Ajax Click Twice in a Row Causes Content to disappear
- → OctoberCms component: How to display all ID(items) instead of sorting only one ID?
- → In OctoberCMS how do you find the hint path?
- → How to register middlewares in OctoberCMS plugin?