• Hello everyone,

    I’m using Mobble to add conditional functions for mobile devices, and so it happens that I want to add a conditional function that does not present the Easing Slider plug-in if the website is viewed on mobile.
    I was able to accomplis this for the footer and the sidebar by using this:

    <?php
    if (!is_mobile()) {
    get_sidebar();
    }
    ?>
    
    <?php
    if (!is_mobile()) {
        get_footer();
    }
    ?>

    But I have no clue how to accomplis this for Easing slider.
    This is the code to have Easing slider show up:
    <?php if (function_exists("easing_slider")){ easing_slider(); }; ?>

    How can I add the two things together? I’m sorry. Please pardon my PHP illiteracy.

    Thank you in advance if you can help me!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @enriquevw, you’ve probably figured this out by now, but regardless, something as simple as the code below should work.

    <?php
    if ( !is_mobile() ) {
        if ( function_exists( 'easing_slider' ) ) { easing_slider(); }
    }
    ?>

    That’s it 🙂

    I tried to do that and it did not work for me.

    I am using SmallBiz Dynamic for my theme.

    and I still also want it to only show up on the homepage in desk top view as well.

    Oh and I am using Easing slider pro, not easing slider lite.

    Hi @northendcoder, for “Pro” support queries, please contact us through the support form here. We aren’t able to deal with “Pro” support queries here.

    Sorry first time that I was actually not able to find the answers, through questions, from people who had the same problems as me, just sooner.

    also the first time I actually used pro themes and plug-ins.

    I will use that link you gave me right away.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘[Plugin: Mobble] and Easing Slider hide for mobile phones’ is closed to new replies.