Disable sidebar on mobile


#1

Hello,

I would like to disable the sidebar BUT ONLY on mobile ! Is there a way ?

Thank you ? Seb :slight_smile:


#2

Dear Seb,

Thank you for asking.

In order to accomplish that objective, could you please try to add the following CSS code through the Simple Custom CSS plugin or child themeโ€™s style.css?


@media only screen and (max-width: 1024px){
  
  
  #primary.content-area{
    width: 100% !important;
  }
  
  #secondary{
    display: none;
  }
  
  
}

Let me know how it goes.

Regards,
Kharis