- This topic has 24 replies, 7 voices, and was last updated 5 years, 1 month ago by David.
-
AuthorPosts
-
September 7, 2017 at 7:11 am #380964Esteban
Good morning friends!
I ask for your help to solving this problem:
I have a website with this homepage: https://oficientes.com/
And this blog: https://oficientes.com/blog/It’s all OK with that sections, but I want to change the width of the individual entry, without affecting the width of the header in the other two sections.
My goal is to achieve something like this: https://www.arturogarcia.com/cuanto-cuesta-web-hecha-con-wordpress/
I have looked for other examples such as this article: https://generatepress.com/forums/topic/different-width-for-blog-page-and-single-post-page/
But the width of the head and navigation sections is always changed, and I don’t want that.
Thank you very much for your help! (and sorry for mi bad english!)
September 7, 2017 at 8:54 am #381058TomLead DeveloperLead DeveloperHi there,
Here’s the CSS Arturo uses:
.type-post { max-width: 860px; margin: auto; margin: 0px auto 60px auto; padding-bottom: 40px; }
Let me know if you need more info π
September 7, 2017 at 10:36 am #381141EstebanDear Tom,
It worked perfectly! I tried to do it but couldn’t find the correct CSS instruction.
Thank you very much!
September 7, 2017 at 12:44 pm #381268TomLead DeveloperLead DeveloperYou’re very welcome π
September 28, 2017 at 4:46 pm #393886Anderson OjopeHello, Tom!
I included the above code but it is also changing the static pages, file pages and categories.
I want to change only the single post pages.
What should I do?
September 28, 2017 at 4:46 pm #393887Anderson OjopeMy site: https://goo.gl/ZCsMms
September 28, 2017 at 7:33 pm #393942LeoStaffCustomer SupportAre you wanting to change the overall container width (including header, navigation footer etc) for the single posts? Or just the content area?
September 29, 2017 at 8:13 am #394240Anderson OjopeOnly part of the content and only the unique posts.
Stages page, files, and so on, remain the default width of the theme.
September 29, 2017 at 8:17 am #394243LeoStaffCustomer SupportTry this:
.single .site.grid-container { max-width: 900px; }
September 29, 2017 at 8:43 am #394251Anderson OjopeThanks!
September 29, 2017 at 9:24 am #394290LeoStaffCustomer SupportNo problem!
October 25, 2017 at 11:52 am #410169LewisYeah I also needed to do this today.
It seems like something that should be part of the customizer. Any plans to add it, or any reasons you wont?
For those of us that don’t use a sidebar on our site, the container width is usually too wide for the content. It’s not ideal.
October 25, 2017 at 2:42 pm #410265LeoStaffCustomer SupportI’ve only seen this request for like 3 times.
if you don’t use the sidebar at all, then you can adjust the container width for the entire site to be smaller?
https://docs.generatepress.com/article/container-width/October 25, 2017 at 9:58 pm #410433LewisReally? I’ve had this issue with almost every site I’ve built with GP.
Changing the container also pulls in the logo and nav. Ideally need a separate control for the content area.
Also, if you have sidebars on your archive pages and not on your single posts, it just makes the blog content difficult to read. For some layouts, it just doesn’t make sense to have a single, global site width.
October 26, 2017 at 8:41 am #410701LeoStaffCustomer SupportThe header can already adjusted to be within the container or full width separately: https://docs.generatepress.com/article/header-layout/
Thanks for the suggestion. We will definitely consider it for sure π
Let me know if you need some CSS solution for now.
-
AuthorPosts
- You must be logged in to reply to this topic.