Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #983907
    preetga
    Participant

    Hi there,

    I am unable to view my product reviews in mobile/tablet format. When I click the “review” tab, nothing happens. e.g: http://www.naturalhealthstar.com/healthstore/for-babies-and-children/

    Also, would it be possible for the review tab to be selected as default?

    I’d really appreciate your help!

    Best regards,
    Preet

    #984128
    Thai
    Moderator

    Hi There,

    Please add the following code under Customizer > Custom > Global Javascript:

    jQuery(function($) {
    	$(".woocommerce-tabs ul li").removeClass('acitve');
    	$(".woocommerce-tabs ul li.reviews_tab").addClass('acitve');
    	$('.x-nav-tabs>li>a').off('click touchend touchstart');
    });

    Hope it helps 🙂

    #1018219
    preetga
    Participant

    Thanks so much this is great.

    Would it be possible for the review tab to be pre selected as default instead of the description tab please?

    Thanks,
    Preet

    #1018247
    Rupok
    Member

    Hi Preet,

    Thanks for updating. Actually that was also covered on the reply but there is small typo that’s why it’s not working properly. Kindly update the code a bit :

    jQuery(function($) {
    	$(".woocommerce-tabs ul li").removeClass('active');
    	$(".woocommerce-tabs ul li.reviews_tab").addClass('active');
    	$('.x-nav-tabs>li>a').off('click touchend touchstart');
    });

    Hope this helps.

    Cheers!

    #1018905
    preetga
    Participant

    Hi, this is still not quite working properly. It highlights the review tab title but the tab is not selected so you cannot actually see the reviews by default. Have a look at this product as an example:

    http://www.naturalhealthstar.com/healthstore/for-babies-and-children/

    thanks for your help!

    #1019396
    Lely
    Moderator

    Hi There,

    Can you refresh and then check again? I tried it on my mobile and I can see the review. Please see attached screenshot.

    #1019604
    preetga
    Participant

    Hi there,

    No this definitley doesnt work for me, even after refreshing. On my mobile and on my laptop I only get “reviews” highlighted but the tab shows the test for “description”. I’ve attached a screenshot of my screen.

    Thanks,
    Preet

    #1019605
    preetga
    Participant

    screenshot attached

    #1019606
    preetga
    Participant

    screen shot file is too big for me to upload even when I compress it sorry!

    Could you please check the code for me?

    #1019645
    Thai
    Moderator

    Hi There,

    Please update the previous code a bit:

    jQuery(function($) {
    	$(".woocommerce-tabs ul li").removeClass('active');
    	$("#tab-description").hide();
    	$(".woocommerce-tabs ul li.reviews_tab").addClass('active');
    	$("#tab-reviews").show();
    	$('.x-nav-tabs>li>a').off('click touchend touchstart');
    });

    Hope it helps 🙂

    #1021785
    preetga
    Participant

    That works perfectly now, thank you so much for your help!

    Preet

    #1021984
    Paul R
    Moderator

    You’re welcome! 🙂

    #1052131
    preetga
    Participant

    Hi there,

    since upgrading theme x, this no longer works and I can no longer see the reviews tab as default. The ‘Review’ tab title is highlighted but the reviews are not actually showing as default. See this link as an example: http://www.naturalhealthstar.com/healthstore/for-babies-and-children/

    Please help.
    Regards,
    Preet

    #1052171
    Christopher
    Moderator

    Hi there,

    Please update your JS code to :

    jQuery(function($) {
    	$(".woocommerce-tabs ul li,.x-tab-pane.fade.in.description_pane").removeClass('active');
    	$(".woocommerce-tabs ul li.reviews_tab, .x-tab-pane.fade.in.reviews_pane").addClass('active');
    	$('.x-nav-tabs>li>a').off('click touchend touchstart');
    });

    Thanks.

    #1052308
    preetga
    Participant

    That’s great thank you so much!

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