Digital experiences for all disciplines
Forum Replies Created
-
-
Hi In addition to the above, after updating quickview, I notice that the theme is now broken when viewed on a mobile (it is fine on a desktop if you shrink the browser).
– the cart slide out button is broken, it just takes you straight to the cart page.
– the hamburger menu does not work at all.
– the page elements on the product page are broken, see attached images, the image slider and tabs are all broken.Please advise?
thanks
SamAttachments:
You must be logged in to view attached files.Hi David, generally on simple products.
Also, I updated the quickview plugin this morning, and now the button has vanished… See attached.
thanks.
Attachments:
You must be logged in to view attached files.Hi I cleared cache and it worked for the first one i added, and then it didn’t work the second time…
This reply has been marked as private.perfect thanks!
This reply has been marked as private.This reply has been marked as private.Hi Rui, it will do as this is a live site and I have changed it back to “standard” layout util I have a fix. I cleared site, browser and CDN cache and it still happens…
Any other thoughts?
thanks
SamThis reply has been marked as private.Hi we use the following popular plugin for product filters, this was causing the problem when AJAX filtering was turned on. Maybe you can look at compatibility for future Atelier updates?
http://codecanyon.net/item/woocommerce-product-filter/8514038
thanks.
Hi So I tried this and it seemed ok, I placed this code in the snippet plugin, would you mind looking at it to check it will not cause any theme issues and would in fact place in the body tag?
thank you.
add_filter( ‘body_class’, ‘gtm_add’, 10000 );
function gtm_add( $classes ) {
$block = <<<‘BLOCK’
<!– Google Tag Manager –>
<noscript><iframe src=”//www.googletagmanager.com/ns.html?id=GTM-WX9PHM”
height=”0″ width=”0″ style=”display:none;visibility:hidden”></iframe></noscript>
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({‘gtm.start’:
new Date().getTime(),event:’gtm.js’});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!=’dataLayer’?’&l=’+l:”;j.async=true;j.src=
‘//www.googletagmanager.com/gtm.js?id=’+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,’script’,’dataLayer’,’GTM-WX9PHM’);</script>
<!– End Google Tag Manager –>BLOCK;
$classes[] = ‘”>’ . $block . ‘<br style=”display:none’;
return $classes;
}Hi Mohammad, I tried this but the GTM assistant then says the code is outside the <body> tag… does that sound right to you?
I was looking at this: http://www.affectivia.com/blog/placing-the-google-tag-manager-in-wordpress-after-the-body-tag/
Bud could not get it to work because your theme file header.php has a different value than <?php body_class(); ?>. Based on this link is there a way to adit the snippet you gave me to be compatible with this technique?
Sorry I am no a programmer, but do have understanding of code.
thanks
SamHi Mohammad, thanks I will try this. Please clarify, I do not use a child theme… can it be added using the Snippets plugin?
I use this for other code additions.
Thanks
SamHi Mohammad, I tried using the below PHP using the snippets plugin and when I do my analytics tags vanish…
<?php if ( function_exists( ‘gtm4wp_the_gtm_tag’ ) ) { gtm4wp_the_gtm_tag(); } ?>
Any thoughts why that might be?
Is there any way you could include it in an update of the theme? I imagine lots of users are struggling with this issue (they will be if they what to use GTM)… also it is a generic piece of code so the same for any installation of Duracell Tomi’s GTM plugin. If not any other ideas I can add the GTM code without editing the theme? I tried pasting manually the code direct from GTM into the Custom JS as suggested above but that did not seem to work, maybe it does not place it in the correct place on the page? It needs to be immediately inside the <body> tag.
I notice using Google tag assistant you have analytics tags active on the Atelier site, how did you guys do it?
Many thanks for the continued support.
Sam
could there be a way to insert this PHP using the Snippets plugin that I use for other things?
-
Posted in: Reply To: Google tag manager