Change Main Sidebar breakpoint?
-
Currently, my top-nav menu has a breakpoint of 1024 before it switches to the off-canvas menu, and I would like to have the main sidebar match this behavior. As it works now, you have to go all the way down to 640 before the main sidebar jumps under the main content and it becomes a single-column layout. I would like to change the breakpoint of this Main Sidebar (the only one I use) to match that of the top-nav menu (1024), or at least set it to break at 800.
I know the style.css file in WP-Starter has a section for adding your own CSS for different media queries, but I’m wondering if a more simple and direct way wouldn’t be to make a copy of the sidebar.php file in my child theme’s folder and change the class assigned to it? By default, it’s this:
<div id="secondary" class="medium-4 large-4 columns widget-area" role="complementary">
If this is the way to go, how should I change the classes above to make the sidebar break at 1024 (which I’d be happy with), or at 800 (which I’d prefer!).
- The topic ‘Change Main Sidebar breakpoint?’ is closed to new replies.