Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1212296

    Hello! I’m using the tab element on my site and would like for all tabs to be open on mobile devices. Is there a way to do this?

    #1212484

    Hey bobfurgo,

    On which page can I see the tabs?

    Best regards,
    Jordan Shannon

    #1212594

    The about page. Via the link in private area.

    #1213010

    following up. thanks!

    #1213696

    Hi,

    Apologies, this has to be done via jquery. Please provide admin info so we can work it out.

    Best regards,
    Jordan Shannon

    #1213697

    pls see private area

    #1213705

    Hi,

    I added the following script which seemed to have worked:

    function add_custom_code(){
    ?>
    <script>
    var windowWidth = jQuery(window).width();
    if(windowWidth<768){
    jQuery(document).ready( function() {
        jQuery('.tab').addClass('active_tab');
    	jQuery('.tab_content').addClass('active_tab_content');
    });
    }
    </script>
    <?php
    }
    add_action('wp_footer', 'add_custom_code');

    Best regards,
    Jordan Shannon

    #1213820

    THANK YOU JORDAN! I really appreciate it.

    #1213838

    Hi,

    No problem, I’m happy to help. If you need anything else, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘have tabs open on mobile’ is closed to new replies.