Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1154431
    rmcgregor86
    Participant

    Hi there,

    Can someone please help me install the code for a Facebook pixel – or just simply DO for me PLEASE!

    Code scares me. Ha!

    I’ll include add login in details etc in a private message below.

    Thanking you,
    Rebecca

    #1154432
    rmcgregor86
    Participant
    This reply has been marked as private.
    #1154548
    Prasant Rai
    Moderator

    Hello Rebecca,

    Thanks for writing in!

    Because this requires a template change, I’d advise that you setup a child theme. This allows you to make code changes that won’t be overwritten when an X update is released.

    Once your child theme is set up, you can insert the code below in your child theme’s functions.php:

    // Add Facebook custom audience pixel Code
    // =============================================================================
    function add_facebook_audience_pixel_code(){
    ?>
    
    <!-- Insert Facebook custom audience pixel Code starts here -->
    
    The Facebook custom audience pixel Code should be place here
    
    <!-- Insert Facebook custom audience pixel Code Code ends here -->
    
    <?php 
    }
    add_action( 'wp_head', 'add_facebook_audience_pixel_code' );
    // End Facebook custom audience pixel Code
    // =============================================================================
    #1154550
    Rahul
    Moderator

    Hey There,

    Please add the code below in your functions.php.

    // Add scripts to wp_head()
    function head_scripts() { ?>
        <!-- Your FB Pixel Script goes here -->
    <?php }
    add_action( 'wp_head', 'head_scripts' );

    Give it a try and let us know how it goes!

  • <script> jQuery(function($){ $("#no-reply-1154431 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>