WordPress.org

Ready to get started?Download WordPress

Forums

WordPress SEO by Yoast
Main page meta description - how to (1 post)

  1. ssza
    Member
    Posted 2 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?

    http://wordpress.org/extend/plugins/wordpress-seo/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic