How to add code into the header of a static page

Community Forums Forums Design Tips and Tricks How to add code into the header of a static page

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  braddalton 1 year, 5 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #42055

    davej1963
    Participant
    Post count: 30

    Hi, I’d like to add the following code into the header of one of the pages on my website:

    <meta name=”DC.title” content=”Home Care Registry” />
    <meta name=”geo.region” content=”US-IL” />
    <meta name=”geo.placename” content=”Belleville” />
    <meta name=”geo.position” content=”38.55784;-90.056011″ />
    <meta name=”ICBM” content=”38.55784, -90.056011″ />

    Thanks in advance for your answer.

    #42087

    braddalton
    Participant
    Post count: 10203

    I tested this code and it shows in the source code but not sure you’ll need it with Genesis 2.0 if your child theme is HTML 5 supported as it produces HTML 5 markup which is microdata supported:

    [php]
    function add_text_genesis() {
    if (is_page(’2′) )
    echo ‘<div class="home-text">
    <meta name=”DC.title” content=”Home Care Registry” />
    <meta name=”geo.region” content=”US-IL” />
    <meta name=”geo.placename” content=”Belleville” />
    <meta name=”geo.position” content=”38.55784;-90.056011? />
    <meta name=”ICBM” content=”38.55784, -90.056011? /></div>’;
    };
    /**
    * @author Brad Dalton
    * @link http://wpsites.net/
    */
    add_action(‘wp_head’, ‘add_text_genesis’);
    [/php]


Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.