[Support request] Sticky sidebar, sidebar width – another issue

Home Forums Support [Support request] Sticky sidebar, sidebar width – another issue

Home Forums Support Sticky sidebar, sidebar width – another issue

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #263757
    Michal

    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? 😉

    #263790
    Tom
    Lead Developer
    Lead Developer

    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;
    }
    #263805
    Michal

    more explanation on this? I don’t get it

    #263813
    Tom
    Lead Developer
    Lead Developer

    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.

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