Tagged: , ,

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #513846

    Hi

    Is there any way to get the tabs to work like proper tabs or at least fixed buttons on a mobile device?

    Currently they work like an accordion. Our first tabs has ‘all’ products within in. Therefore when they page loads the user has to scroll a lot to see the other tab options.

    I have previous tried this code but it breaks the child functions php.

    <script>
    jQuery(window).load(function(){
    	if(jQuery.avia_utilities.isMobile){
    		jQuery('.tab').removeClass('active_tab');
    		jQuery('.tab_content').removeClass('active_tab_content');
    	}
    });
    </script>
    #513904

    Hi richardelectrix!

    They display like an accordion because on mobiles there is usually a small screen so all of the tabs cannot fit on the same line. Because of this we change the styling so they display on top of each other.

    Regards,
    Elliott

    #513916

    Is there no way to get it so the accordion displays closed and the tabs appear as buttons on top of each other that are static??

    Thanks

    #514334

    Hey!

    not sure what you mean. Can you provide us a link where we can see the tabs you are talking about? and then show us an example where it looks and behaves as you want?

    Best regards,
    Andy

    #514347

    Hi

    Here is where the tabs are displaying …

    http://dev2.electrixinternational.com/products/trunking-systems/flat-lid-trunking-system/

    If I go to the above page on the mobile I have to scroll for ages before I can see the other tabs (because it is an accordion).

    In an ideal world the tabs on a mobile should be stacked on top of each other …

    All Products
    Lengths
    Bends
    Tees
    Etc

    {All products tab displays here}

    When you click on Lengths, it turns to blue and display the length option underneath the tab options.

    All Products
    Lengths
    Bends
    Tees
    Etc

    {Lengths tab displays here}

    … so the tab buttons always remain at the top.

    #514606

    Hey!

    That would take a lot of time and code to change so it would have to be considered custom work. It would be best to hire a freelancer to help you out with this customization.

    Cheers!
    Elliott

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Tabs on a Mobile Device’ is closed to new replies.