Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #878017
    stuartsb
    Participant

    Hello,

    Many thanks for recently fixing the mobile image zoom functionality which was causing issues on the website. Your last update did cause another issue though. We have uploaded a facebook pixel header script:

    There is a rogue piece of code pulling through? could you help us stop this code displaying? It is at the top left of the shop page http://www.upclothing.co.uk/shop

    We do need this script to still function
    Please don’t overwrite the header.php which contains the header script.

    Facebook Pixel code snippets below please don’t overwrite.

    <!– Facebook Pixel Code –>
    <script>
    !function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
    n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
    n.push=n;n.loaded=!0;n.version=’2.0′;n.queue=[];t=b.createElement(e);t.async=!0;
    t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
    document,’script’,’https://connect.facebook.net/en_US/fbevents.js&#8217;);

    fbq(‘init’, ‘1135384896513515’);
    fbq(‘track’, “PageView”);</script>
    <noscript><img height=”1″ width=”1″ style=”display:none”
    src=”https://www.facebook.com/tr?id=1135384896513515&ev=PageView&noscript=1&#8243;
    /></noscript>
    <!– End Facebook Pixel Code –>

    To the file:
    frameworkviews > global > header.php

    Many thanks
    Stuart

    #878530
    Thai
    Moderator

    Hi Stuart,

    Instead of inserting directly to your parent theme.

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

    add_action( 'wp_head', 'x_facebook_pixel' );
    function x_facebook_pixel(){
    	?>
    	<script>
    		!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
    		n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
    		n.push=n;n.loaded=!0;n.version='2.0′;n.queue=[];t=b.createElement(e);t.async=!0;
    		t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
    		document,'script','https://connect.facebook.net/en_US/fbevents.js');
    
    		fbq('init', '1135384896513515');
    		fbq('track', "PageView");
    	</script>
    	<noscript><img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=1135384896513515&ev=PageView&noscript=1" /></noscript>
    	<?php
    }

    Hope it helps 🙂

    #881739
    stuartsb
    Participant

    Many thanks for sending the Facebook function script. This has now been implemented.

    We are still getting a rogue piece of code pulling through on the store page and product pages:

    Our site developers can’t see where this is being pulled through from within the theme. Could you assist in removing this from the front end view please?

    NOTE. We still need the FB Pixel code to track though!

    Many thanks
    Stuart

    #882079
    Zeshan
    Member

    Hi Stuart,

    Thanks for writing in!

    Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – WordPress Admin username / password
    – FTP credentials

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Thanks!

    #882129
    stuartsb
    Participant
    This reply has been marked as private.
    #883069
    Friech
    Moderator

    Hi Stuart,

    Thanks for the credentials, but would you mind sending us a screenshot of the said rogue code? I’m not seeing any code on my end.


    screenshot

    Thanks.

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