Tagged: x
-
AuthorPosts
-
August 30, 2016 at 9:25 pm #1154431
rmcgregor86ParticipantHi 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,
RebeccaAugust 30, 2016 at 9:27 pm #1154432
rmcgregor86ParticipantThis reply has been marked as private.August 30, 2016 at 11:36 pm #1154548
Prasant RaiModeratorHello 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 // =============================================================================August 30, 2016 at 11:37 pm #1154550
RahulModeratorHey 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!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1154431 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
