- This topic has 4 replies, 2 voices, and was last updated 3 years, 1 month ago by Tom.
April 7, 2018 at 6:07 pm #544149Tomas
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?
TomasGeneratePress 2.0.2April 7, 2018 at 10:20 pm #544215TomLead DeveloperLead Developer
You can do this using GP Hooks.
Add your meta tag in “Appearance > GP Hooks” in the wp_head hook.
Hope this helps 🙂April 8, 2018 at 11:37 am #544671Tomas
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?
TomasApril 8, 2018 at 11:56 am #544678Tomas
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,
TomasApril 8, 2018 at 9:25 pm #544882TomLead DeveloperLead 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 🙂
- You must be logged in to reply to this topic.