[Resolved] Scripts in entire site via GeneratePress possible?

Home Forums Support [Resolved] Scripts in entire site via GeneratePress possible?

Home Forums Support Scripts in entire site via GeneratePress possible?

  • This topic has 3 replies, 2 voices, and was last updated 6 years ago by Leo.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #553143
    Carl

    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.

    #553287
    Leo
    Staff
    Customer Support

    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.

    #553316
    Carl

    You sir are amazing! I found the GP Hooks in Appearance and with your info quickly got this done, tested, works great!!!

    #553864
    Leo
    Staff
    Customer Support

    Glad I could help 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.