• Hi all, how do I add my Facebook Pixel code to the Oceanwp child theme? Currently when I add it to functions.php it would display an error code, maybe I am putting it in the wrong place. Please guide me!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi Xuanminggg,

    Please ensure the code you’re entering is complete and you can also contact the facebook pixel support for advice.

    Thank you!

    Theme Author oceanwp

    (@oceanwp)

    Hello, as @emranemranx said, make sure the code is good and try to add it this way in the functions.php file:

    function prefix_facebook_pixel() { ?>
    	YOUR CODE
    <?php
    }
    add_action( 'wp_head', 'prefix_facebook_pixel' );
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Oceanwp Child Theme add Facebook Pixel’ is closed to new replies.