- This topic has 7 replies, 2 voices, and was last updated 4 years, 4 months ago by David.
-
AuthorPosts
-
November 28, 2019 at 2:01 am #1080966Christopher
Is it possible to set the sidebar depth so content below it fills the width of the design?
For example:
I’d like the email sign up to cut off at the same point as the featured blog post and have the blog posts below fill the width of the screen.
November 28, 2019 at 3:55 am #1081159DavidStaffCustomer SupportHi there,
try this:
@media(min-width: 1024px) { .right-sidebar .wp_subscribe { padding: 0; border-radius: 8px; overflow: hidden; } .right-sidebar .wp_subscribe .wp-subscribe-wrap { min-height: 637px; display: flex; flex-direction: column; justify-content: space-between; } }
It also removes the padding around the form widget and adds a border radius to match.
November 28, 2019 at 4:00 am #1081165ChristopherThat works very nicely. Thanks! The only thing is the articles below the featured still don’t fill the whole width of the design. Here:
I’d like that space on the right to be filled. Is that possible?
November 28, 2019 at 4:30 am #1081198DavidStaffCustomer SupportThis is all terribly hackish but remove the other CSS i provided and add this:
/* Common styles - mobile and desktop */ .right-sidebar .wp_subscribe { padding: 0; border-radius: 8px; overflow: hidden; } /* Desktop only layout */ @media(min-width: 769px) { .right-sidebar .wp_subscribe .wp-subscribe-wrap { min-height: 637px; display: flex; flex-direction: column; justify-content: space-between; } .site-content { position: relative; } #primary { width: 100%; } #right-sidebar { position: absolute; top: 0; right: 0; } .separate-containers .site-main { margin-right: 0; } .generate-columns-container .post:first-child { width: calc(75% - 20px); } }
Note the first CSS rule is for Mobile and desktop so any background colors etc. should be applied there as the remaining CSS only affects desktop.
November 28, 2019 at 4:44 am #1081226ChristopherThings seem to have gone a bit haywire here:
November 28, 2019 at 4:53 am #1081240DavidStaffCustomer SupportThats because:
1. You have adjusted the width of the content to 65% / sidebar 35%
Which means thewidth: calc(75% - 20px);
needs to be adjusted.2. Removed the excerpt from the featured post.
So themin-height: 637px;
property needs to be adjusted to match the new height.As i said this is rather hackish and any changes to sizes widths or content length will break it.
November 28, 2019 at 6:52 am #1081531ChristopherAh! Got it. Thanks a lot.
November 28, 2019 at 7:36 am #1081603DavidStaffCustomer SupportYou’re welcome
-
AuthorPosts
- You must be logged in to reply to this topic.