[Resolved] Any feature to add code snippets in headers/footer/anywhere?

Home Forums Support [Resolved] Any feature to add code snippets in headers/footer/anywhere?

Home Forums Support Any feature to add code snippets in headers/footer/anywhere?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1115072
    mc

    I would like to add code snippets to all headers/footers across my site. I know you can add CSS with the customize option, but I don’t feel comfortable adding code snippets there and I’m not sure if javascript works there.

    I’m trying to add stuff like favicons/google analytics into the header. I know it can be done with other plugins, but would prefer not to install more plugins.

    #1115121
    David
    Staff
    Customer Support

    Hi there,

    for adding code such as Google Analytics to the WP_Header or adding <scripts> to the footer you can use the Hook Element:

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

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