Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #909230
    qualalbatroz
    Participant

    Hello,

    I was testing my site with my android phone and I’ve just noticed that the tabs in the single product page don’t open. Check here.
    In my laptop and desktop, the tabs open fine, though everytime you click the tab the page scrolls up a bit, which is a bit strange, but I can live with that. I thought this was related with a plugin I installed to get a 4th product tab, but I went to the x demo pages, for example this one, and the behaviour is the same: the strange scrolling in bigger screens, and the tabs not opening on a mobile phone. It’s like they were disabled.

    I would appreciate your help to get the tabs opening in smartphones.

    Best

    José

    #909453
    Thai
    Moderator

    Hi Jose,

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

    jQuery(document).ready(function($) {
      $('.x-nav-tabs>li>a').off('touchstart');
      $('.x-nav-tabs>li>a').on('click', function() {
        $('html, body').animation().stop();
      });
    });

    Hope it helps 🙂

    #909586
    qualalbatroz
    Participant

    Hi there,

    I did, but there was no change. I still can’t open them. To make sure it wasn’t a cache issue, I used an android phone of a friend that had never been to my website.

    José

    #909804
    qualalbatroz
    Participant

    Hi there,

    I’ve been experimenting and I found out that some pages do work, most of them in fact. But these two products don’t:
    http://qualalbatroz.pt/loja/a-distancia-da-lua/
    http://qualalbatroz.pt/loja/a-locomotiva/

    And I really can’t understand why they don’t work. All the others products seem to be okay now and the tabs open.

    So what’s the problem with these two? I thought it could be because the product is out of stock, but that doesn’t apply to the 2nd case 😐

    Thanks you for your help.

    José

    #910362
    Christopher
    Moderator

    Hi there,

    Please provide us with login credentials so we can compare products.

    Thanks.

    #911250
    qualalbatroz
    Participant

    Hi there,

    I think I solved the problem. I compared the products with the “stuck” tabs to the most similar ones, and I discovered that both these two products didn’t have any “linked products”. I added some products to the “cross-sells” box and the problem was gone. Now they open. Does this make any sense?

    Anyway, it’s solved. Thanks for the help!

    José

    #911775
    Prasant Rai
    Moderator

    Happy to hear that. Feel free to ask us again. Have a great day! 🙂

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