- This topic has 5 replies, 3 voices, and was last updated 1 year, 6 months ago by
Leo.
-
AuthorPosts
-
January 1, 2021 at 3:46 pm #1602064
Toby
I must be missing something very basic because this should be a very simple task:
I need to set the content max-width to 600px and the right sidebar max-width to 300px. As long as the browser window is large enough these should be the settings used.
“content” to me is the width (including padding) for the main center “column” on the site.
The Customizing -> Layout -> Container stuff seems to just change things relative to the “container width” which is not good enough. I need to be *sure* the content column is 600px wide, and that the right sidebar is 300px (again, when there is room available).
How do I set the max widths to fixed values for these elements while retaining the responsive layout etc?
Regards,
TobyJanuary 1, 2021 at 5:39 pm #1602115Leo
StaffCustomer SupportHi Toby,
Try setting the content container width to 900px and use this CSS to set the sidebar width to a fixed width of 300px:
https://docs.generatepress.com/article/sidebar-widths/#fixed-widthLet me know if this helps π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/January 2, 2021 at 2:34 pm #1603076Toby
Yes, this solved my problem (I also did some changes to account for padding etc).
Thank you for the quick reply, I didn’t expect that over the holidays :-).cheers, Toby
January 2, 2021 at 3:08 pm #1603101Leo
StaffCustomer SupportNo problem π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/January 3, 2021 at 11:14 am #1604031Mark
This looks like it will help me also. I am trying now on my staging site.
Just wanted to add for Leo/GeneratePress: The 300px sidebar is a request/need for sites running ad networks. the 300px sidebar ad is very popular and lucrative. The preferred behavior is, as a user shrinks the webpage smaller, the sidebar holds the 300px width (still showing ads) and at some point it hits the min content column size, and the sidebar just disapears.
Just mentioning in that it may be a more common request than expected, and maybe it could be baked into the settings for the future
January 3, 2021 at 12:38 pm #1604107Leo
StaffCustomer SupportThanks for your suggestion. Options like this likely won’t be baked into GP Premium as it really isn’t requested that often – which is why we have the snippet ready in our docs π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/ -
AuthorPosts
- You must be logged in to reply to this topic.