• I’m struggling to work out if it is possible to load a Meta Slider plugin conditionally, i.e. if the screen is larger than mobile (so mobile users don’t get the slideshow).

    I was planning on doing this like so:

    $('.homepage__slider').load('wp-content/themes/mytheme/slider.php');

    With the content of slider.php being:

    <?php echo do_shortcode('[metaslider id="8302"]'); ?>

    …but it turns out you can’t use short codes with ajax.

    Is there a way of calling for the slider without using a shortcode perhaps?

The topic ‘[Plugin: Meta Slider] Conditional loading’ is closed to new replies.