Archived topic
Scripts in entire site via GeneratePress possible?
3 replies · Started by Carl on April 17, 2018
I have a question about scripts. I’m trying to add the following script which works great thrown inside a page I made, placed inside the Heading Title block using Elementor. See https://twb.wyldegaming.com/guild-bank/ and choose the Raid Materials or Raid Supply tabs. It provides onHover tooltips for game items, etc... directly from WoWhead.com.
<script>var whTooltips = {colorLinks: true, iconizeLinks: true, renameLinks: false};</script>
<script src="//wow.zamimg.com/widgets/power.js"></script>
Is there a place I can put this using GeneratePress Customize that’ll have it work across all my site, posts, etc that won’t be removed if GeneratePress updates? There’s plugins that can do this but are outdated and I’m trying to slim down on plugins for things.
Hi there,
Scripts like that can usually be added in the wp_footer hook:
https://docs.generatepress.com/article/wp_footer/
https://docs.generatepress.com/article/hooks-overview/
Let me know if this helps.
You sir are amazing! I found the GP Hooks in Appearance and with your info quickly got this done, tested, works great!!!
Glad I could help :)