Archived topic
editing html template
5 replies · Started by Hector on March 18, 2017
I need to add html code into head tag of my generatepress pro template.
How can I do?
I think this is a beginer's question but I can't see the steps I need.
Thank you
Hector
Hi Hector,
Try using GP hooks and add it to wp_head.
https://docs.generatepress.com/article/hooks-overview/
Let me know if this helps.
Great, Leo
but I don't looking for this.
I want to modify html code of my template.
I need add some javascript call, similar to googleapis or jquery.
Thanks
Hector
Adding it to wp_head or wp_footer should both work?
Or are you hoping to use a child theme?
https://docs.generatepress.com/article/using-child-theme/
You just don't want to add the code to the theme's core files since it won't be saved through updates.
Let me know if this is what you are after.
Sorry to bring this back up but can i change the HTML of the template when i use a child theme ?
Yes.
If you want to change the HTML of the template, child theme is the only way actually.