Site logo

[Resolved] Remove sidebar blog in tablet view

Home Forums Support [Resolved] Remove sidebar blog in tablet view

Home Forums Support Remove sidebar blog in tablet view

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #2127506
    Renske

    Hi there,

    How do I remove the sidebar widgets on my blog in tablet view? Thanks!

    #2127748
    David
    Staff
    Customer Support

    Hi there,

    do you want to remove the sidebar or have it displayed below the content ?

    #2127764
    Renske

    What do you mean by ‘displayed below the content’? Will it then display at the bottom of the page? This would be fine 🙂

    #2127783
    David
    Staff
    Customer Support

    Try adding this CSS:

    @media (max-width: 1024px) {
    
        .site-content {
            flex-direction:column;
        }
    
        .container .site-content .content-area,
        .is-right-sidebar.sidebar  {
            width: auto;
            order: initial;
        }
    
        #main {
            margin-left: 0;
            margin-right:0
        }
    
    }
    #2127790
    Renske

    Thanks David. Unfortunately this didn’t work 🙁 I’m still seeing the sidebar in tablet view.

    #2127802
    David
    Staff
    Customer Support

    You have this CSS which is broken:

    @media(max-width: 768px) {
        #secondary-navigation {
            display: none;
        }
    	@media (max-width: 1024px) {
    
        .site-content {
            flex-direction:column;
        }
    
        .container .site-content .content-area,
        .is-right-sidebar.sidebar  {
            width: auto;
            order: initial;
        }
    
        #main {
            margin-left: 0;
            margin-right:0
        }

    replace that with:

    @media(max-width: 768px) {
        #secondary-navigation {
            display: none;
        }
    }
    
    @media (max-width: 1024px) {
    
        .site-content {
            flex-direction: column;
        }
    
        .container .site-content .content-area,
        .is-right-sidebar.sidebar {
            width: auto;
            order: initial;
        }
    
        #main {
            margin-left: 0;
            margin-right: 0
        }
    }

    #2127830
    Renske

    Yes, this worked! Thanks again, David! I know I’m keeping you busy at the moment 😉

    #2127858
    David
    Staff
    Customer Support

    You’re welcome!
    I prefer being busy 🙂

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.