- This topic has 14 replies, 3 voices, and was last updated 5 years, 7 months ago by David.
-
AuthorPosts
-
September 25, 2018 at 2:31 am #685709Elisabeth
Hi all
I think this is an easy one but I can’t work it out quite right. Also can’t seem to hit the exact key words I need in the forum or documentation when I search. So…
I’ve got a website where the sidebar is on the left and has a couple of widgets in it. On the right is the content. At the bottom is the footer, obviously.On some pages there is a lot of content. When the content in the main body area makes the page very long the background colour of the sidebar just stops below the last widget (this isn’t a problem on pages with less content as the widgets take the sidebar all the way down to the footer anyway. I want the whole sidebar to have a background colour, not just individuals widgets.
I’m going something wrong in how I’m setting up elements or page layout in the customizer. Suggestions?!
ElisabethSeptember 25, 2018 at 9:15 am #686045LeoStaffCustomer SupportHi there,
Any chance you can link us to the site in question so we can provide the best solution possible?
You can edit the original topic and use the private URL field.
Let me know 🙂
September 26, 2018 at 4:47 am #686657ElisabethI’ll add the link to the private url section in the original query, with the proviso that this is my messing around sandpit!
I’ve added a tonne or lorem ipsum to show what happens when the text in the body/content area runs further down the page than the sidebar widgets go.September 26, 2018 at 4:49 am #686660ElisabethIf you click around the site in the private url I sent over you’ll see that on pages where the body content goes less far down the page the sidebar background colour goes right down to the top of the background colour of the footer.
September 26, 2018 at 5:26 am #686681DavidStaffCustomer SupportHi there,
you can try this CSS:
@media (min-width: 768px) { .left-sidebar #content { display: flex; } #left-sidebar { background-color: beige; } }
Then remove the customizer color for the sidebar widgets
September 26, 2018 at 7:00 am #686751Elisabethsorry to be really thick – does this go in the element or in the Customizer ‘extra css’ bit?
September 26, 2018 at 7:02 am #686752DavidStaffCustomer SupportIn the Customizer CSS 🙂
September 26, 2018 at 7:11 am #686758Elisabeththank you!
September 26, 2018 at 7:14 am #686760DavidStaffCustomer SupportYou’re welcome i just noticed an error in my code which i have updated here:
https://generatepress.com/forums/topic/sidebar-background-colour-container-issue/#post-686681
September 26, 2018 at 7:19 am #686765ElisabethHmmm… that’s now giving me a white background where widgets appear in the sidebar, and a beige one below that… have tried the second bit of code you sent over.
September 26, 2018 at 7:28 am #686773DavidStaffCustomer SupportSo in the Customizer > Colors > Side Bar Widgets on the background color there is a second slider just pull that down to the bottom to remove the white
September 26, 2018 at 7:39 am #686777ElisabethAha. Magic! Thank you.
And I presume I just change the ‘beige’ to the exact hex code for the colour I want in that CSS above to get the background to what I want it to be.Thanks so much!
September 26, 2018 at 7:40 am #686778DavidStaffCustomer SupportThats correct 🙂 Glad to be of help
September 26, 2018 at 7:54 am #686878ElisabethI’m loving GeneratePress… as far as I’m concerned it’s the perfect gateway drug to learning/teaching yourself/trying out html and css. Lots of stuff is already done for you, but it’s very flexible, and you can tweak and add and experiment. Really appreciate the support forum, also.
September 26, 2018 at 7:58 am #686884DavidStaffCustomer SupportWow, really appreciate the feedback.
Tom does a cracking job at keeping the Theme lightweight and flexible.
And we like nothing more then helping people achieve their designs 🙂 -
AuthorPosts
- You must be logged in to reply to this topic.