Yoast SEO
[Plugin: WordPress SEO by Yoast] Main page meta description - how to (1 post)

  1. ssza
    Posted 3 years ago #

    I've selected "force rewrite" in WP SEO plugin. All pages and post have titles and meta descriptions as I've induced in settings. So plugin works ok, no problem with that.

    Only my main page (domain) doesn't have meta description. I'm checking with this website

    I've tried to add in header.php :

    <title><?php wp_title(''); ?></title>
    <?php if (  (is_home()) || (is_front_page())  ) { ?>
    <meta name="description" content="na-na-na-na-na" />
    <?php }

    but it doesn't work.

    What should I doo?


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Yoast SEO
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic