Site logo

[Support request] Add Code to Header

Home Forums Support [Support request] Add Code to Header

Home Forums Support Add Code to Header

  • This topic has 7 replies, 2 voices, and was last updated 7 years ago by David.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #885389
    Daniel

    Hi,

    I would like to add some code to my header.

    I see previous questions on this have been answered refering to ‘GP hooks’?

    What are these hooks? I don’t see them anywhere and I have everthing enabled.

    Thanks
    Daniel Gillen

    #885428
    David
    Staff
    Customer Support

    Hi there,

    Hooks are part of the Elements module:

    https://docs.generatepress.com/article/elements-overview/

    Hooks are just places in the themes coding that allows you to insert code or other data. You will want to select the WP_head hook in the hook list for adding code to the site header.

    #885446
    Daniel

    I am trying to add this code but it wont work:

    <script src=”https://8792c80d8c0e438dbe647b77c12045e0.js.ubembed.com&#8221; async></script>

    I have it set to wp-head

    execute short codes and execute php are both unselected.

    It’s set to apply to all users.

    Thanks
    Daniel

    #885451
    David
    Staff
    Customer Support

    Did you set the Display Rule Location? ie. to Entire Site

    You can uncheck Execute PHP and Shortcodes as that doesn’t apply for adding scripts like that.

    #885455
    Daniel

    Yes its set to the entire site.

    PHP and shortcodes are unchecked. It doesn’t work.

    #885460
    David
    Staff
    Customer Support

    I can see the script in the head:

    Script

    #885466
    Daniel

    Thanks, I have raised with Unbounce to see if the fault is at their end

    #885481
    David
    Staff
    Customer Support

    You’re welcome.

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