• Hi,
    I need to add a Facebook pixel to a landing page on my website. Since it’s a single landing page, I don’t need it in my head tag for the entire website.
    I can’t find a way to edit the head tag for a specific page.

    Also, I’m using Elementor and the Hello Elementor theme. If you know some way to edit the head tag with Elementor that would be great.

    Thanks.

    • This topic was modified 4 years, 11 months ago by Jan Dembowski.
Viewing 3 replies - 1 through 3 (of 3 total)
  • You can try to find a plugin, but if not here is what I do as a programmer:

    In header.php

    
    <?php if(is_page(25)) { ?>
        //Enter Your Code Here
    <?php } ?>
    

    Change out 25 with whatever your page id is.

    Thread Starter Edi

    (@edi365)

    Should I put it in the beginning or towards the end of header.php? Where exactly?

    Before the closing head tag or where ever you want the tracking code to appear.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Editing tag for a single page’ is closed to new replies.