- This topic has 16 replies, 3 voices, and was last updated 7 years, 6 months ago by Gabriele.
-
AuthorPosts
-
June 30, 2015 at 7:34 am #117620ScottJune 30, 2015 at 9:23 am #117647TomLead DeveloperLead Developer
Absolutely! This can be done inside “Customize > Layout”.
1. Customize > Layout > Header Layout: Contained
2. Customize > Layout > Navigation Layout: Contained
3. Customize > Layout > Content Layout: One ContainerLet me know if you need more info π
August 30, 2015 at 6:27 am #133087ScottFurther to the above, how would I add padding around the header, navigation and content container?
Thanks!
August 30, 2015 at 9:34 am #133121TomLead DeveloperLead DeveloperOur Spacing add-on allows you to add spacing around the header and content super easily.
Or are you wanting padding around the entire website container?
August 30, 2015 at 10:07 am #133136ScottThanks Tom.
I have added spacing to the content and header now. How can I add (white) spacing to the left and right of the navigation?
August 30, 2015 at 10:32 am #133139TomLead DeveloperLead DeveloperThat’s a little tricky because the navigation doesn’t have a container by default.
Do you have GP Hooks?
August 30, 2015 at 11:11 am #133154ScottYes I have GP hooks
August 30, 2015 at 11:24 am #133157TomLead DeveloperLead DeveloperCool.
1. Go to “GP Hooks > Before Header” and add this:
<div class="site-wrapper grid-container grid-parent">
2. Go to “GP Hooks > wp_footer” and add this:
</div><!-- .site-wrapper -->
3. Add this CSS:
.site-wrapper { padding: 20px; }
Adjust the px as needed – you can also remove the spacing you added to the header and content π
August 30, 2015 at 3:27 pm #133185ScottUnfortunately that didn’t work for me. The navigation still has no padding to the right and left of it and I still needed to enter spacing for content and header.
August 30, 2015 at 10:28 pm #133215TomLead DeveloperLead DeveloperAny chance I can get a link to your site?
August 31, 2015 at 10:56 am #133318TomLead DeveloperLead DeveloperAh, we forgot to add a color!
Try this for your CSS:
.site-wrapper { padding: 20px; background-color: #FFF; }
August 31, 2015 at 2:51 pm #133356ScottHa thanks. Working great now!
August 31, 2015 at 3:35 pm #133369TomLead DeveloperLead DeveloperAwesome! π
March 31, 2017 at 8:03 am #299922GabrieleHi Tom,
first I’m very pleased with GP, kudos to you!I’m trying to achieve the same things but in my case the primary navigation is a full width banner above the header and the secondary navigation below the header.
I would like to leave the primary navigation (and the header itself maybe) full width and add a padding for the secondary navigation, body content and footer, so the wrapper must comprehend only these elements I suppose.
I’m trying to achieve something like this http://www.effektiv.fr but + the primary navigation full width above the header.
I tried to putin GP Hooks “after header content” or “after header” but doesn’t work.
Please could you help me with that?
Also I would like to change the behavior for small devices and smartphones (like the site I linked before), how can I do? Is it better to write the css with media queries only for big screens or instead change it for exclude the padding for small devices?
And last how can I put a top margin above the footer so that it looks a separate container (please refer to the same site) if I use one-contrainer option in GP?Thanks and have a nice day.
March 31, 2017 at 9:43 am #299981TomLead DeveloperLead DeveloperHi there,
Any chance you can start a new topic and link me to what you’ve created so far?
-
AuthorPosts
- You must be logged in to reply to this topic.