• Resolved majidsajadi

    (@majidsajadi)


    hi.
    i build a website with wordpress and i want to disable silder and all widget in sidebar in responsive mode. any idea?
    thanks for your help.
    this is my site: geeklab.ir

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hey there majidsajadi,

    How are you doing today?

    This is definitely possible with some custom CSS and the use of media queries.
    The way it can work is that you can add CSS and target resolutions below or above x in width.

    Please let me know what resolutions you want that to happen and I’ll be happy to try to help. Aslo on the page you linked I can’t see slider there only featured image, so please point to what else aside from sidebar you want to remove.

    Cheers,
    Bojan

    Thread Starter majidsajadi

    (@majidsajadi)

    Hi Bojan Radonic WPMU DEV Support

    Thanks for your help.

    I want to disable side bar for any tablet or phone below 10 inch.
    I disable my slider for now but i will add it later.

    Hey again majidsajadi,

    Please try adding the following CSS code in the style.css file of your child theme or if your theme doesn’t have custom CSS tab add it in your site using the following plugin:

    http://wordpress.org/plugins/simple-custom-css

    @media only screen and (min-device-width: 768px){
    div#secondary {
        display: none;
    }
    div#primary {
        width: 100%;
    }
    }

    Hope this helps 🙂

    Cheers,
    Bojan

    Thread Starter majidsajadi

    (@majidsajadi)

    hey Bojan Radonic WPMU DEV Support
    i change min-device-width: 768px with max-width: 768px and it works. thanks alot dude.

    Awesome 🙂 Glad you managed to figure this out!

    cheers,
    Bojan

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Disable sidebar in responsive mode’ is closed to new replies.