Tagged: x
-
AuthorPosts
-
July 21, 2016 at 3:22 am #1096660
Hi there,
After I upgraded the woocommerce to 2.6.3, the product tabs on the product page of our online store don’t open automatically once the page loads. You have to click on them to open, which is not the intending behaviour. Could you please help?
Our site is at qualalbatroz.pt and you can check a product page here http://qualalbatroz.pt/loja/o-livro-da-pira/ (though you can check any other product)
Woocomerce version: 2.6.3
Wordpress version 4.5.3
x.version 4.6.0
Cornerstone 1.3.0Thanks!
José
July 21, 2016 at 3:31 am #1096672Hey José,
Please remove the script in Appearance > Customize > Custom > Javascript, clear all caches including browser history and try again.
Thanks.
July 21, 2016 at 6:15 pm #1097813Hello there,
I removed the code, cleared all caches, including browser history, but the problem remains… Looking forward to some more help.
Thanks!
José
July 21, 2016 at 11:24 pm #1098175Hi there,
It’s a bug on tabs nav since it’s now utilizing the indexes instead of ID. Please add this code to Admin > Appearance > Customizer > Custom > Javascript
jQuery ( function($) { $('.woocommerce-tabs > .x-nav > .x-nav-tabs-item > a').on('click', function() { var index = $(this).data( 'cs-tab-toggle' ); setTimeout( function() { $( '.woocommerce-tabs > .x-tab-content > div[data-cs-tab-index="' + index + '"] .x-nav > .x-nav-tabs-item:first-child a' ).trigger('click'); }, 200 ); } ); $( document ).ready ( function() { $('.woocommerce-tabs > .x-nav > .x-nav-tabs-item:first-child > a').trigger('click'); } ); } );
Hope this helps.
July 22, 2016 at 3:25 am #1098326That worked perfectly! Thanks so much!
José
July 22, 2016 at 3:44 am #1098351You’re welcome!
We’re glad we were able to help you out. -
AuthorPosts