Support » Fixing WordPress » How Do I Add A Page Description To The Home Page

  • 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

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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.

    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!

    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 } ?>
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How Do I Add A Page Description To The Home Page’ is closed to new replies.