Support » Theme: PressBook Green » Sidebar shoelws underneath only

  • Resolved fixing2022

    (@fixing2022)


    Hi,

    This is a lovely theme but when I use desktop version on my phone, the sidebars show underneath the body and not to the right and left. How do I fix this?

    Also the top block, in appearance, customise, preview, it shows as normal but when I go to the published site, the boxes are thinner and longer (red ones). Anyone know why?

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Theme Author ScriptsTown

    (@scriptstown)

    Hi,

    For double sidebars layout, the breakpoint is less than 1280px screen width when it gets to the bottom of the main content and for single sidebar, it is less than 1024px screen width.

    You would need CSS to change it but then it would shrink the main content too much for small screens.

    For you second question, if you mean for header block, then you can use max-width on the columns so it won’t expand too much (Appearance > Customize > Additional CSS):

    .header-block-1 .pb-pattern-cols {
    max-width: 1100px;
    margin: 0 auto;
    }
    Thread Starter fixing2022

    (@fixing2022)

    Thank you for your reply. .

    What if one sidebar stayed there and the other got pushed underneath? It’s okay if the main content here smaller.

    Theme Author ScriptsTown

    (@scriptstown)

    For double sidebars, you can use the following CSS code below.

    In this code 1100px is the screen-width, you can values like 1000px or 1200px (increase or decrease it).

    @media screen and (min-width: 1100px) {
    	body.double-sidebar .pb-content-sidebar {
    		flex-wrap: nowrap;
    	}
    
    	body.double-sidebar .pb-content-sidebar::after {
    		content: none;
    	}
    
    	body.double-sidebar .c-sidebar-left {
    		order: -1;
    		margin-left: 0;
    		margin-right: 25px;
    	}
    
    	body.double-sidebar .c-sidebar-right {
    		order: 1;
    		margin-left: 25px;
    		margin-right: 0;
    	}
    
    	body.double-sidebar .c-sidebar {
    		min-width: 260px;
    	}
    
    	body.double-sidebar .site-main {
    		padding-left: 29px;
    		padding-right: 29px;
    	}
    
    	body.double-sidebar .entry-content .alignfull,
    	body.double-sidebar .entry-content .alignwide {
    		margin-left: -30px;
    		width: calc(100% + 60px);
    		max-width: calc(100% + 60px);
    	}
    }

    For just one sidebar to appear, it will require significant CSS to do that.

    Thread Starter fixing2022

    (@fixing2022)

    Thank you. It worked when I set it to 900

    I thought I would amend the sidebar width to 200 from 260 to allow 120px more for the main body but the main body didn’t widen. Do I need to add a separate code for that?

    Theme Author ScriptsTown

    (@scriptstown)

    It looks ok to me, it does get widen. Your CSS would apply to 900px to 1280px screen width, you can check how the CSS code is written for small to large screen-sizes for double sidebar layout in style.css file to override it.

    Thread Starter fixing2022

    (@fixing2022)

    Theme Author ScriptsTown

    (@scriptstown)

    In your CSS, you can change this 200px to 150px:

    @media screen and (min-width: 900px) {
        body.double-sidebar .c-sidebar {
            min-width: 150px;
        }
    }

    Also, you can try single sidebar layout, if you remove all widgets from any one of the sidebar, it won’t appear. So, you can keep widgets only in one sidebar.

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