[Support request] How to add code to the header of a single page (not site wide)

Home Forums Support [Support request] How to add code to the header of a single page (not site wide)

Home Forums Support How to add code to the header of a single page (not site wide)

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1432463
    Jay

    Hi, I know how to add code (facebook pixel code, for example) site wide. But how do I add code to 1 page?

    (it’s actually a custom post type, if that makes any difference. But the custom post type appears as a page when you visit the URL. It’s just not under the normal “Pages >> All Pages” menu in WordPress).

    #1432467
    Leo
    Staff
    Customer Support

    Hi there,

    Try using a hook element with the desired display rules first:
    https://docs.generatepress.com/article/hooks-element-overview/

    Let me know if this helps 🙂

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