stackacc
stackacc

Reputation: 81

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

sunlitex.co.id/en/

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 &quot;'; single_cat_title(); echo '&quot; | '; bloginfo( 'name' );
} elseif ( is_tag() ) {
    echo 'Tag Archive for &quot;'; single_tag_title(); echo '&quot; | '; bloginfo( 'name' );
} elseif ( is_archive() ) {
    wp_title(''); echo ' Archive | '; bloginfo( 'name' );
} elseif ( is_search() ) {
    echo 'Search for &quot;'.wp_specialchars($s).'&quot; | '; 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?

Upvotes: 0

Views: 655

Answers (1)

denmch
denmch

Reputation: 1516

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.

Upvotes: -1

Related Questions