Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1217389
    Jbal25
    Participant

    Hello,
    I have read the threads on how to install child theme. I have successfully installed it. Now… i am not a web developer, or coder, or have any knowledge about this sort of stuff at all! Please tell me in the simplest terms…
    1) the exact and BEST way to install facebook pixel
    2) the exact and BEST way to install google analytics

    Also, now that that child theme is active. Do I remain using child theme for the duration of my website usage? or do I switch back to the regular theme?

    I also noticed that when switching to the child theme, all my sidebars are now gone. How do I fix this?

    Thank you!

    #1217415
    Thai
    Moderator

    Hi There,

    1) the exact and BEST way to install facebook pixel

    Please add the following code under functions.php file locates in your child theme:

    2) the exact and BEST way to install google analytics

    You can use this extension: https://community.theme.co/kb/extension-google-analytics/.

    Hope it helps 🙂

    #1217498
    Jbal25
    Participant

    Hey, you said to put the following code into my site…but it doesn’t seem like there is anything you put in the comment.

    #1217780
    Rue Nel
    Moderator

    Hello There,

    Thanks for updating in! After the child theme is set up, please add the following code in your child theme’s functions.php file

    // 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
    // =============================================================================

    Hope this helps.

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