Support » Fixing WordPress » How to remove secondary sidebar in Mobile View ?

Viewing 3 replies - 1 through 3 (of 3 total)
  • You can do that with media query

    
    @media only screen and (max-device-width: 480px) {
    aside#secondary.sidebar-area.widget-area {
    display:none;
    }
    }
    

    for more info
    https://css-tricks.com/snippets/css/media-queries-for-standard-devices/

    • This reply was modified 4 years, 6 months ago by Omar Kasem.
    Thread Starter dwivyandre

    (@dwivyandre)

    Hi Omar !

    Thank you for your reply, but it doesn’t work for me ,check here: http://prntscr.com/fibsrg

    therefore my sidebar position is fixed , because im using reference sidebar from nesthq.com for my website & here’s my CSS Code Sidebar

    /* SIDEBAR FIXED */
    .layout-sidebar .sidebar-area .block-grid--gutters {	
    		height:100% !important;
    		position: fixed !important;
    		border-left: 1px solid !important;
    		padding-top: 100px !important;
    		padding-left: 50px !important;
    		padding-right: 50px !important;
    		padding-bottom: 100px !important;	
    		overflow-y: scroll !important;
    		right: 0 !important;
    		width: 350px !important;
    	}
    • This reply was modified 4 years, 6 months ago by dwivyandre.
    Thread Starter dwivyandre

    (@dwivyandre)

    SOLVED! Thank you omar

    im using

    @media only screen and (max-width: 1120px) {
        /* For mobile phones: */
        aside#secondary.sidebar-area.widget-area {
            display:none;
        }
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to remove secondary sidebar in Mobile View ?’ is closed to new replies.