- This topic has 7 replies, 2 voices, and was last updated 10 years, 10 months ago by
Tom.
-
AuthorPosts
-
May 3, 2015 at 1:11 pm #105108
Zoe
I’d like to customize different content layouts for posts and pages.
For example –
– “Separate Containers” for pages
– “One Container” for postsIs it possible to do like that?
Thanks Tom.
May 3, 2015 at 10:49 pm #105187Tom
Lead DeveloperLead DeveloperHmm, might be tough..
Set everything to one container, then add this CSS (assuming you’re using the right sidebar):
.page.right-sidebar.one-container .site-main { margin: 20px 20px 20px 0; padding: 0; } .page.one-container .inside-right-sidebar { margin-bottom: 20px; margin-top: 20px; } .page-container .widget { margin-bottom: 20px; }That should do separate containers on pages, and then use the one container setting for everything else.
May 4, 2015 at 7:23 am #105323Zoe
First try (this morning), it didn’t seem to work. I will try that CSS when I get home.
Here’s what I want to achieve.
I use “sections” addon for home page. That’s how I setup –
Customize
———
Content Layout = Separate ContainersSections Addon
————–
Box Type = Contained
Inner Box Type = ContainedThat way, the home page displays in boxed layout with background.
I don’t want to display other regular pages and posts (with sidebars) in separate containers layout.
#########################################
I try the other way –
Customize
———
Content Layout = One ContainerSections Addon
————–
Box Type = Contained
Inner Box Type = ContainedThen, the regular pages and posts (with sidebars) displays in one container but the home page is in full-width layout – not in boxed layout with background anymore.
May 4, 2015 at 9:14 am #105342Tom
Lead DeveloperLead DeveloperHmm, the sections should still be in the boxed layout regardless of the content layout setting.
Do you have a link where you’re trying this so I can take a look?
May 4, 2015 at 9:43 am #105345Zoe
Hi Tom
This is how I setup –
Content Layout = One Container
Box Type = Contained
Inner Box Type = ContainedThe sections from home page are not in boxed layout. They are in full-width layout and cover the background image.
May 4, 2015 at 12:36 pm #105371Tom
Lead DeveloperLead DeveloperCan you try adding this CSS?: http://generatepress.com/forums/topic/content-layout-problem/#post-104101
May 4, 2015 at 1:25 pm #105387Zoe
Hey Tom
After adding CSS to child, it works!
Thanks you so much.
May 4, 2015 at 1:52 pm #105388Tom
Lead DeveloperLead DeveloperYou’re welcome 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.