WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. jrobie23
    Member
    Posted 1 year 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?

    http://wordpress.org/extend/plugins/wp-mobile-detector/

  2. websitezcom
    Member
    Plugin Author

    Posted 1 year 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
    Member
    Posted 1 year ago #

    as always, very helpful response!! Thanks!

  4. bubs2112
    Member
    Posted 10 months ago #

    Hi,

    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
    Member
    Plugin Author

    Posted 9 months 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

About this Topic

Tags