Theme Support Forum

Support Forum for Free and Premium Themes. Premium Theme Forums are Private! Please log in first to see the Premium forums

Viewing 2 posts - 1 through 2 (of 2 total)

Hide the slider on small screens

Home Forums Free Theme Support Theron Lite Hide the slider on small screens

  • #33350

    Johannes

    I would like to hide the slider on smartphones but i dont arrive to do it. can somebody help me?

    #33508

    Towfiq I.

    administrator

    Open up index.php and replace this:

    <div id="slider">
    <?php get_template_part(''.$zn_slides = of_get_option('slider_select', 'nivo').''); ?>
    </div>
    <div class="slide_shadow"></div>

    with:

    <?php wp_is_mobile(); ?>
    <?php }else{ ?>
    <div id="slider">
    <?php get_template_part(''.$zn_slides = of_get_option('slider_select', 'nivo').''); ?>
    </div>
    <div class="slide_shadow"></div>
    <?php } ?>

You must be logged in to reply to this topic.