- This topic has 8 replies, 2 voices, and was last updated 1 year, 7 months ago by David.
-
AuthorPosts
-
April 7, 2018 at 6:07 pm #544149Tomas
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,
TomasApril 7, 2018 at 10:20 pm #544215TomLead DeveloperLead DeveloperHi there,
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 #544671TomasHey 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,
TomasApril 8, 2018 at 11:56 am #544678TomasTom!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,
TomasApril 8, 2018 at 9:25 pm #544882TomLead DeveloperLead DeveloperI 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 🙂
August 26, 2022 at 4:44 am #2324445Boris<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”>August 26, 2022 at 4:53 am #2324453DavidStaffCustomer SupportHi Boris,
do you have a specific issue you need assistance with ?
Let me know
August 26, 2022 at 5:48 am #2324530BorisHey! Trying to install meta tags in head of GeneratePress but nothing works
August 26, 2022 at 5:52 am #2324537DavidStaffCustomer Support1. 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 towp_head
5. Set the Display Rules -> Location toEntire Site
or the pages that you want it applied toThats it.
Note: The theme already includes the<title>
tag, so you should not add that using a hook. -
AuthorPosts
- You must be logged in to reply to this topic.