Forums

Google description (5 posts)

  1. prncessr14
    Member
    Posted 2 years ago #

    How can I enter a standard description of my site (index) to show up as the result of a google search (under the site's name), rather than having it pull pieces of my recent posts?

    Any help is greatly appreciated!

  2. mrmist
    Member
    Posted 2 years ago #

    You could add a meta description tag into your header template for the index page, if there's not already one of them.

    Somewhere below this line in your header

    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />

    Put this -

    <?php
     if(is_home()) { echo '<meta name="description" content="Put your description here." />'; }
    ?>
  3. prncessr14
    Member
    Posted 2 years ago #

    Many thanks!:)

  4. ronDomingue
    Member
    Posted 2 years ago #

    Does this method also work for Keywords?

    Also does Google still use keywords?

  5. Anonymous
    Unregistered
    Posted 1 year ago #

    How to force a line feed between these two meta tags?
    [code]
    <?php
    if(is_home()) { echo '<meta name="description" content="Information about rare and collectible glass bottles." />';
    echo '<meta name="keywords" content="bottle mold, glass bottle, bottle bases, glass machine, pontil, mold seams, base plate, blown bottle, side mold seams, historic bottles" />';
    }
    ?>
    [/code]

Topic Closed

This topic has been closed to new replies.

About this Topic