Tagged: x
-
AuthorPosts
-
April 12, 2016 at 5:27 am #878017
stuartsbParticipantHello,
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’);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>
<!– End Facebook Pixel Code –>To the file:
frameworkviews > global > header.phpMany thanks
StuartApril 12, 2016 at 10:54 am #878530
ThaiModeratorHi 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 🙂
April 14, 2016 at 3:23 am #881739
stuartsbParticipantMany 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
StuartApril 14, 2016 at 7:19 am #882079
ZeshanMemberHi 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 credentialsDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
Thanks!
April 14, 2016 at 7:50 am #882129
stuartsbParticipantThis reply has been marked as private.April 14, 2016 at 4:05 pm #883069
FriechModerator -
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-878017 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>

