WordPress.org

Ready to get started?Download WordPress

Forums

How Do I Add A Page Description To The Home Page (4 posts)

  1. jasong5
    Member
    Posted 2 years ago #

    Hi,

    I'm able to add page descriptions to my posts using the All In One SEO Plugin, but I'm looking to find out how to add a description to the home page.

    Thanks in advance,

    Jason

  2. Pioneer Valley Web Design
    Member
    Posted 2 years ago #

    You could use:

    <meta name="description" content="My Description" />

    Added at top of the <head> to header.php of your theme...with a 'if is home page' php call...I will let another give that as I am not a php expert.

  3. jasong5
    Member
    Posted 2 years ago #

    To be honest, I'm an amature when it come to this... I would be able to put <meta name="description" content="My Description" /> into the header.php, but I'm not sure exactly what you're meaning with 'if is home page' php. Would that go in the functions.php? If so, where would I put the page description?

    Thanks!

  4. Jacob Chappell
    Member
    Posted 2 years ago #

    He means you would add this to your header.php file (next to your other meta tags output):

    <?php if ( is_home() ) { ?>
    	<meta name="description" content="My Description" />
    <?php } ?>

Topic Closed

This topic has been closed to new replies.

About this Topic