- This topic has 7 replies, 2 voices, and was last updated 8 years, 2 months ago by
Tom.
-
AuthorPosts
-
July 10, 2015 at 3:08 pm #120075
Barbara Lougheed
I’m using the sections feature as a home page to display my four books as four different sections. I made each section a different pastel color, but it would be nicer if each section could be physically separated from each other, like they are in the blog with the background color between all boxes. Is there a way to do this? If not, it would be a nice feature to add in the future. Thanks Tom, for giving us such a versatile template!
July 11, 2015 at 12:09 am #120117Tom
Lead DeveloperLead DeveloperInteresting idea – a margin option instead of just padding.
For now, you could do something like this:
1. Add a custom class to each section you want to add spacing after, for example: section-spacing
2. Add this CSS:
.section-spacing { margin-bottom: 40px; }
Let me know if that works or not π
July 26, 2015 at 11:32 am #123814Barbara Lougheed
I am not familiar with CSS, so it’s probably not wise for me to try to change anything. Just consider this a request for a future update. π A different color between the sections would make it obvious that it’s another section. Of course, I cold pick bold colors for each section to do the same thing, but since I’ve got pictures in each section, it seems like a bold color would overwhelm the pictures.
July 26, 2015 at 6:40 pm #123915Tom
Lead DeveloperLead DeveloperCSS is pretty tame – not a lot can go wrong when playing with it π
To add a solid color between sections, you can do something like this:
1. Add a custom class to the section – for example,
section-border
#generate-section-1.section-border { border-bottom: 20px solid #DDDDDD; } #generate-section-3.section-border { border-bottom: 20px solid #000000; }
You can change the number to specify whichever section you want in order, and adjust the pixels and color as you need.
Adding CSS: http://generatepress.com/knowledgebase/adding-css/
If you need any more guidance just let me know – happy to help π
July 26, 2015 at 7:57 pm #123936Barbara Lougheed
I activated CSS thru Jetpack, then just copy and pasted the code you wrote above into the “CSS Stylesheet Editor,” hit “preview,” but saw nothing. Am I missing something?
July 26, 2015 at 11:58 pm #123956Tom
Lead DeveloperLead DeveloperDid you add the
section-border
classes to your sections?July 27, 2015 at 9:48 am #124115Barbara Lougheed
O-M-G! It worked! *I* made a CSS change (with YOUR help, obviously, lol)!
So here’s an example of GP sections, with borders separating the sections: http://www.barbaralougheed.com/
Thanks so much for your help Tom!
July 27, 2015 at 9:52 am #124116Tom
Lead DeveloperLead DeveloperAwesome! Now you know CSS π
Happy I could help π
-
AuthorPosts
- You must be logged in to reply to this topic.