WP Mobile Detector
[resolved] slider removal? (5 posts)

  1. jrobie23
    Posted 2 years ago #

    Is it possible to remove a slider from the home page when viewing the mobile site?

    Well, I know it is possible, but is it do-able through this plugin?


  2. websitezcom
    Plugin Author

    Posted 2 years ago #

    Unfortunately, with the way WordPress is designed, one plugin cannot manipulate another plugin.

    So you'll have to do a "hack".

    The best way is to modify the slider plugin and have it only show if it is not a mobile device.

    The nice part is the WP Mobile Detector gives you access to a value inside the wp query object as well as a cookie you can check against.

    You could also put JavaScript in the footer that hides the slider, or removes it from the page if you'd like.

  3. jrobie23
    Posted 2 years ago #

    as always, very helpful response!! Thanks!

  4. bubs2112
    Posted 2 years ago #


    I also have the same type of query.. I have just 1 slider on my home page located just under the menu header.

    I am not using any slider plugin, it is part of my theme which is on top of woocommerce.

    Would the best way be to action/hook the functions.php file of my theme? If so, what action would I call? The slider is in the form of a shortcode in my theme.

    Thanks in adv.

  5. websitezcom
    Plugin Author

    Posted 2 years ago #

    You'll have to contact whoever made the theme to find out how you can deactivate it.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Mobile Detector
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic