Archived topic
How to add code to the header of a single page (not site wide)
1 reply · Started by Jay on September 5, 2020
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).
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 :)