Site logo

Archived topic

Sticky sidebar, sidebar width - another issue

3 replies · Started by Michal on January 13, 2017

Viewing posts 1–4 of 4

Hi,
I use https://pl.wordpress.org/plugins/sticky-menu-or-anything-on-scroll/ to display sticky sidebars in conjunction with https://wordpress.org/plugins/custom-sidebars/ to display custom content on each subpage in a sidebar.

I set a default website width to 700 px and when I try to set a sidebar my main content becomes very narrow.

How to make a subpage which contains a custom sidebar to have 700 px + 100 px (or another value) for sidebar instead of 575 px - main content and 175 sidebar for pages which contain sidebar and default value of 700 px for pages without sidebar?

In another words:

700px (main area) + 100px for subpages which contain sidebar
700 px for subpages without sidebar

Instead of 575 px (main area) + 175 px (sidebar)

Am I clear? ;)

Hmm..

If you're using GP options to set the sidebar, you could potentially do this:

body:not(.no-sidebar) .grid-container {
    max-width: 800px;
}

more explanation on this? I don't get it

On pages that have a sidebar (don't have the no-sidebar class), the container width will be 800px.

On pages that don't have a sidebar (have the no-sidebar class), the container will be whatever you have it set to in the Customizer.

This archived topic is closed to new replies.