Archived topic
Adding Javascript Using Elements or HOOK?
1 reply · Started by septiady on March 12, 2021
Viewing posts 1–2 of 2
https://prnt.sc/10k5wl2
https://prnt.sc/10k5x0x
Hi, can you check if i do correctly?
The javascript is supposedly to target the whole page.
I am not sure about hook, execute shortcode, php and priority.
Thank you
Hi there,
Try wp_footer hook instead:
https://docs.generatepress.com/article/wp_footer/
You don't need to execute PHP, shortcode or set a priority.
Hope this helps :)
This archived topic is closed to new replies.