- This topic has 7 replies, 3 voices, and was last updated 1 year, 6 months ago by
Leo.
-
AuthorPosts
-
December 4, 2020 at 4:57 am #1567066
Tom
Sitewide, my container width is 877 (one container, boxes).
I have a specific blog post I want to make this width 1200 or so. I have added an element, and set it to display on the given post. I have gone and set content area = default and content width = 1200px under content in the element. However the change never happens, the width stays the same. If I change content area in the element (to full width for instance) this change applies. I’ve tried clearing my site and browser cache. What am I missing here?
December 4, 2020 at 9:50 am #1567608Leo
StaffCustomer SupportHi there,
Any chance you can link us to the site in question?
You can use the private information field.
Let me know 🙂
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/December 4, 2020 at 1:43 pm #1567859Tom
Sure.
December 4, 2020 at 6:17 pm #1567992Leo
StaffCustomer SupportCan you clear and disable your caching plugin first?
Do you have any other layout elements added?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/December 4, 2020 at 8:14 pm #1568035Tom
I have tried clearing Autoptimise and WP Fastest Cache, I can’t disable them on a production site. I don’t think it’s that because other layout element changes work fine.
No other layout elements are added on the site.
Could it be that I need to apply the larger container site-wide and then use a layout element to make it smaller on all pages except this one?
UPDATE: the element works fine as long as the site-wide container is wider than the one defined by the element. But then the top menu bar is far too wide. How can I work around this?
December 5, 2020 at 4:41 am #1568276David
StaffCustomer SupportHi there,
you will need to switch the layouts around.
First set the Customizers container width to the largest width you require.
Then create a Layout Element that defines the smaller size and where you want that applied.
The Layout Element may be for the Entire Site and Exclude just the single page you require the wide width.Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/December 5, 2020 at 2:44 pm #1568831Tom
As I mentioned above, this causes the top bar/logo padding to be set at the wider container site-wide. The all pages layout element only reduces the size of the content container.
I would like the content container to be wider on a specific page without affecting the size of the logo/top menu container.
December 5, 2020 at 4:30 pm #1568872Leo
StaffCustomer SupportHmm looks like the layout element method only works to make something wider and not narrower – I’ll look into that.
Give this CSS a shot:
body.postid-2735 .site.grid-container { max-width: 1200px; }
Adding CSS: https://docs.generatepress.com/article/adding-css/
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.