Pinterest Supplied File To Verify My Site - Where To Add The File?

Discussion in 'WordPress' started by dinrock, May 17, 2014.

  1. #1
    Has anyone verified their site with Pinterest? I set up an account and have a few boards where I use Pinterest to pin images etc. to get some backlinks. I just noticed you can also "verify your website" by signing up with Pinterest and they email you a meta tag that they ask you to insert into your site's code. They supply you with "Add this meta tag to the <head> of your index.html file or equivalent" and am asking where I would navigate to add the short line of code? Do I go to APPEARANCE>EDITOR>then? Not sure, any help is appreciated.
     
    dinrock, May 17, 2014 IP
  2. Marko Platanic

    Marko Platanic Active Member

    Messages:
    30
    Likes Received:
    5
    Best Answers:
    1
    Trophy Points:
    53
    #2
    Hey there,

    You have very nicely explanation on this LINK
    You have installation, description, even screenshots.

    I hope this will help you. (Ofc always there is option, you can edit header.php and just put that meta tag)
     
    Marko Platanic, May 18, 2014 IP
  3. TIEro

    TIEro Active Member

    Messages:
    741
    Likes Received:
    177
    Best Answers:
    5
    Trophy Points:
    70
    #3
    Yes, that's where. Appearance -> Editor

    Choose the header.php file and you'll see the page header stuff. Look for the <head> tag and put the meta anywhere after that, as long as it's before the </head> tag. There will be other meta tags in there, so it should be easy to spot. It will then exist on every page of your site, so Pinterest shouldn't have any trouble finding it!
     
    TIEro, May 18, 2014 IP
  4. Hefaistos

    Hefaistos Active Member

    Messages:
    194
    Likes Received:
    14
    Best Answers:
    9
    Trophy Points:
    63
    Digital Goods:
    1
    #4
    Or, to keep your header.php clean, you can just add the next code in functions.php file inside your theme's root. (create one if your theme doesn't have a functions.php file)

    
    <?php
    function theme_pinterest_verification_code() { ?>
       Put here the code provided by Pinterest as HTML.
    <?php
    }
    add_action('wp_head', 'theme_pinterest_verification_code');
    ?>
    
    PHP:
     
    Hefaistos, May 23, 2014 IP