Site logo

[Support request] Can i add Java Script with elements?

Home Forums Support [Support request] Can i add Java Script with elements?

Home Forums Support Can i add Java Script with elements?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1515676
    Marcin

    I need to add JS script to my page to make my accordions work. Hovewer adding JS with Insert Header and Footer does not work. Can I use element to add Java Script code to my <head> or <footer>?

    #1515908
    David
    Staff
    Customer Support

    Hi there,

    yes, you can use the Hook Element:

    https://docs.generatepress.com/article/hooks-element-overview/

    The wp_head hook will place the script inside the <head>
    The wp_footer hook will place it in the <footer>

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