- This topic has 10 replies, 3 voices, and was last updated 4 years, 7 months ago by Leo.
-
AuthorPosts
-
July 29, 2019 at 8:04 am #970191Ravi Dixit
I don’t know how it happened?
My pages container width is 1441px and post containers width is 983px.
I want to make all pages width same as posts except those I select full width in Page Builder Container.
and I also want to show the same shadow on the left and right side as showing for posts.
Thanks in advance
July 29, 2019 at 8:53 am #970256LeoStaffCustomer SupportHi there,
You have 2 blocks of CSS that are setting the post container width:
https://www.screencast.com/t/YNMi3JNl
https://www.screencast.com/t/YlcXcEwCQEI would recommend looking for your CSS first when you encounter weird issues like this.
July 29, 2019 at 9:10 am #970275Ravi DixitOkay thanks, I have combined them…
Can you provide me with the same CSS for Pages also?
Thanks…
July 29, 2019 at 9:18 am #970282Ravi DixitThe first time, I create CSS myself:
#page .inside-article {
max-width: 900px;
margin: 0 auto;
box-shadow: 0px 0px 30px 0px rgba(0,0,0,0.13);
}
But it is making all pages 900px width, I don’t want to make those pages for which I set full width.
Please let me know what is wrong in this CSS.
July 29, 2019 at 4:12 pm #970540LeoStaffCustomer SupportInstead of using CSS to set the container width, would you consider using the built-in option instead?
https://docs.generatepress.com/article/layout-element-overview/#content-1Let me know 🙂
July 29, 2019 at 10:15 pm #970707Ravi DixitI can’t see any option there to set a custom width for specific pages.
I am seeing something like this: https://docs.generatepress.com/wp-content/uploads/2017/03/page_builder_container_meta.png
July 30, 2019 at 5:23 am #970933DavidStaffCustomer SupportHi there,
go to the Appearance > Elements and create a new Layout Element – you will see the options available there.
September 1, 2019 at 8:24 pm #998783Ravi DixitHello, David!
Sorry for the late reply.
I tried and as suggested, It is working fine also. But it is making all my page 900px width.
I only want to show some pages except the pages I set full-width container for…
I know I can do it by adding page rules manually for each page… But it will be tricky and I will have to add the same for new pages I will create in future.
Please help…
September 1, 2019 at 8:38 pm #998789LeoStaffCustomer SupportWhat if we try this CSS?
body.page:not(.full-width-content) .site.grid-container { max-width: 900px; }
This will set the static page that aren’t using full width container setting to 900px for container width.
If this logic still doesn’t work you, then you will need to use the exclusion rule in the layout element.
September 2, 2019 at 3:30 am #998979Ravi DixitIt worked, Thanks LEO!
Please help me to show left and right shadow as same as I am showing for a single Post container.
Thanks for the help…
September 2, 2019 at 9:03 am #999256LeoStaffCustomer SupportIt should be:
body.page:not(.full-width-content) .site .inside-article { box-shadow: 0 0 10px rgba(0,0,0,0.1); }
-
AuthorPosts
- You must be logged in to reply to this topic.