[Resolved] Adding a Meta Tag

Home Forums Support [Resolved] Adding a Meta Tag

Home Forums Support Adding a Meta Tag

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • #544149

    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,

    GeneratePress 2.0.2
    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 🙂


    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?


    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,

    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 🙂

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