- This topic has 9 replies, 2 voices, and was last updated 4 years, 5 months ago by
Leo.
-
AuthorPosts
-
December 5, 2018 at 3:42 pm #749195
Jo
I have a request from my client to add code to each page of a website and also the thank you page in WooCommerce. I googled it and they pretty much said I need to add to a child theme so I don’t lose it when the theme is updated. The theme of course is Generate Press. Do you know of anyway to add code between the body tags on the theme without using a child theme? Is there a hook for that? Sorry this is new to me. I used to do it in Dreamweaver which was a fairly simple process. If I do need to get a child theme do you have a suggestion for one that will work well with Generate Press? Below is a link to the page where I will develop the code for this program. The website is still not live to the world yet but here is the IP address I’m using to develop it: http://69.39.226.3/. If you need credentials for the site email me and I can give those to you.
Program Link:
Thanks for reaching out. Please follow the link below for documentation on ShareASale’s tracking solution for the Apple ITP 2.0 rollout.
Thanks, jo
December 5, 2018 at 3:47 pm #749197Leo
StaffCustomer SupportHi there,
I think what you are looking for is the wp_head hook.
It’s included in our Hooks Elements.
https://docs.generatepress.com/article/hooks-element-overview/Let me know if this helps 🙂
December 5, 2018 at 5:14 pm #749241Jo
Thanks Leo, I will let you know if I have any trouble. There is also an area on the thank you page of WooCommerce I need to put code. Would that involve the Generate Press theme at all or is that more of a WooCommerce question?
December 5, 2018 at 5:32 pm #749244Leo
StaffCustomer SupportIn
wp_head
?If so you will need to find the right conditional tag for that page.
December 5, 2018 at 5:35 pm #749245Jo
Thanks Leo
December 5, 2018 at 6:31 pm #749277Leo
StaffCustomer SupportNo problem 🙂
December 13, 2018 at 1:05 pm #755888Jo
Hi Leo, I had another bit of Code I need to paste for Google Shopping. They sent the below message with code to my client. I am thinking I need to put it into WP_head but could you verify that. I’m just wondering because they say on the home page head. Does it matter that this will probably be on every page then?
“Copy the meta tag below and paste it into your site’s home page. It should go in the <head> section, before the first body section.”
<meta name=“google-site-verification” content=“eb_-WyN9riV7Vr-BppfpJS3w3V-Bm8bRRYYiUtKArTE” />
Thanks, jo
December 13, 2018 at 3:33 pm #756010Leo
StaffCustomer Supportwp_head is the right one.
December 13, 2018 at 3:51 pm #756019Jo
Great, thanks!
December 13, 2018 at 3:52 pm #756020Leo
StaffCustomer SupportNo problem 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.