WordPress.org

Ready to get started?Download WordPress

Forums

Sliding Widgets
Hide on Mobile (3 posts)

  1. corepath
    Member
    Posted 11 months ago #

    Hi,

    Excellent and easy to use plugin, really nice work!

    My only issue is that on the mobile version the widget dominates the screen. Is there a custom CSS insertion I can use to hide the widget on screens smaller than an iPad (maybe 760px?)

    I'm currently using the right position.

    Cheers,

    http://wordpress.org/plugins/sliding-widgets/

  2. coinperson
    Member
    Posted 3 months ago #

    Here is a solution. In your WordPress admin screen, go to Plugins > Editor > Sliding Widget. Choose the .php for whatever slider you are using. For instance, I am using a slider on the right hand side. So I choose sliding-widgets/tpls/right_css.php.

    At the very top add:

    <?php if (!wp_is_mobile()) : ?>

    At the very bottom add:

    <?php endif; ?>

    Now it won't show up on mobile!

    If you want it by pixels, you could also use:

    @media (max-width: 768px) {
    .sticky-social {
    display: none;
    }
    }

  3. alisamski
    Member
    Posted 2 weeks ago #

    This is still showing up on the iphone... tried both of the above solutions. Please advise.

Reply

You must log in to post.

About this Plugin

About this Topic