Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #318892

    Pointeandshoot
    Participant

    I need to add a meta tag with verification code for Pinterest the header of my home page. How do I go about adding this if I am using the Renew stack of X Theme in a WordPress site? My site is http://www.theappliquecircle.com, and I am running the latest version of both WordPress and X Theme.

    Thanks,
    Luke Hunter

    #319122

    Paul R
    Moderator

    Hi Luke,

    To add your verification code, please add the code below in your child theme’s functions.php file

    
    function my_custom_head_output() {
      ?>
        ...code here...
      <?php
    }
    
    add_action( 'wp_head', 'my_custom_head_output', 99999 );
    

    Replace …code here… with your verification code.

    Hope that helps.

    #319177

    Pointeandshoot
    Participant

    Roger. That did it!

    #319424

    Rupok
    Member

    Glad that it helped. Feel free to let us know if you face any other issue. We’ll be happy to assist you.

    Thanks for using X.

    Cheers!

    #835250

    Tristan A
    Participant
    This reply has been marked as private.
    #835419

    Friech
    Moderator

    Hi There,

    Your code is incomplete, please update your code to:

    /*pinterest verify code*/
    function my_custom_head_output() { ?>
        <meta name="p:domain_verify" content="f3dd090f48dd0181a920d22cccf221c1"/>
    <?php }
    add_action( 'wp_head', 'my_custom_head_output', 99999 );

    You can follow this video for more info.

    Hope it helps, Cheers!

    #835913

    Tristan A
    Participant

    OMG, I must have been half asleep still when I edited that code 🙁

    ThaNHS!

    #835919

    Thai
    Moderator

    You’re welcome 🙂