WordPress.org

Ready to get started?Download WordPress

Forums

tagline as meta description homepage only (5 posts)

  1. djstreet
    Member
    Posted 6 years ago #

    I'm trying to call the tagline as the meta description but ONLY have the meta description display on the homage. It doesn't have to be the tagline, but i want just ONE meta description tag on the home. Thoughts?

  2. BPartch
    Member
    Posted 6 years ago #

    Hello

    <?php if( is_home() ) { ?>
    //do stuff only on the home page
    <meta name="description" content="<?php bloginfo('description'); ?>" />
    <?php } ?>

    If I understand what you want this should work. :)

  3. djstreet
    Member
    Posted 6 years ago #

    it works, bang on, thanks.

  4. kurtposer
    Member
    Posted 6 years ago #

    Is there a plug-in that allows for this from teh back-office?

    Kurt

  5. Kafkaesqui

    Posted 6 years ago #

    The back-office? I can recommend my own plugin:

    http://guff.szub.net/head-meta-description/

Topic Closed

This topic has been closed to new replies.

About this Topic