[Resolved] Adding a Meta Tag

Home Forums Support [Resolved] Adding a Meta Tag

Home Forums Support Adding a Meta Tag

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #544149
    Tomas

    Hello
    I need to add a Meta Tag to my site to verify my site for an affiliate program. The instructions on the site are the following:

    1. Get your verification tag

    Log in to the Partner Centre.
    Choose Your Account > Domain Verification.
    Choose Option 1. A unique meta tag will be created.
    Copy the entire tag.

    2. Add the meta tag to your homepage

    Open a new browser window.
    Sign in to your website’s account.
    Go to your website’s Dashboard (add /wp-admin to the end of your domain name, for example, http://yourdomain.com/wp-admin).
    Go to the Edit HTML option under Design / Theme / Settings.
    Search for <head> In the HTML text.
    Just below <head> paste the copied Meta tag.
    Click Save Changes.
    Refresh the page to make sure the changes have been saved.

    3. Verify yourself

    Return to the Partner Centre.
    Click Verify Meta tag.

    But I can’t find the way to edit the HTML.
    How can I do this?
    Many thanks,
    Tomas

    #544215
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    You can do this using GP Hooks.

    Add your meta tag in “Appearance > GP Hooks” in the wp_head hook.

    Hope this helps 🙂

    #544671
    Tomas

    Hey Tom,
    Thanks for the reply.
    I did this and then tried to verify the site but it didn’t work.
    I’m getting the following message:
    “DISALLOW_FILE_EDIT is defined. You should also disallow PHP execution in GP Hooks.”
    Maybe that’s the issue? I opened the instructions on how to disallow PHP in GP Hooks but I couldn’t really understand how to do this.
    I don’t undestarnd how to disble PHP nor how to access the wp-config.php file.
    Is it possible that this is the issue? And if it is, could you help me out on how to solve it?
    Thanks,
    Tomas

    #544678
    Tomas

    Tom!I tried it again but this time I marked the “Exectute PHP” option and it worked!
    Now I’ve disables GP Hooks so I don’t get that message anymore.
    The verification is already done so I shouldn’t have any issues right?
    Tell me what you think,
    Many Thanks,
    Tomas

    #544882
    Tom
    Lead Developer
    Lead Developer

    I believe once the site is verified, you can remove the code. So you should be able to keep Hooks deactivated if you don’t need them 🙂

    #2324445
    Boris

    <title> ARTME | Boris Borisov | Abstract Art Paintings</title>
    <meta name=Author content=”Boris Borisov”>
    <meta name=Keywords content=”ARTME, Abstract Art, Abstract Art Paintings, landscape paintings, paintings, Acrylic, Blue, night, Red, Green, white yellow daisy flower”>
    <meta name=Description content=”ARTME – Abstract Art Paintings”>
    <meta name=verify-v1 content=”chWGTIcHO931WPDzM6cEOvn6j5lGfui1+ptmoZp8DX0=”>
    <meta name=alexaVerifyID content=1a743l0BxYkWRO8LvqNBdIBen6Y>
    <meta name=msvalidate.01 content=83557DA1E39AB47D4D6B43BE8FD5798F>
    <base href=”http://www.artme.se”&gt;

    #2324453
    David
    Staff
    Customer Support

    Hi Boris,

    do you have a specific issue you need assistance with ?

    Let me know

    #2324530
    Boris

    Hey! Trying to install meta tags in head of GeneratePress but nothing works

    #2324537
    David
    Staff
    Customer Support

    1. In Appearance > GeneratePress, Activate the Elements module.]
    2. Appearance > Elenents -> Add New –> Hook.
    3. In the Hook Element add your <meta> tag codes.
    4. Set the Hook to wp_head
    5. Set the Display Rules -> Location to Entire Site or the pages that you want it applied to

    Thats it.
    Note: The theme already includes the <title> tag, so you should not add that using a hook.

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.