Community Forums › Forums › Archived Forums › Design Tips and Tricks › Sidebar Background Color
Tagged: Executive
- This topic has 15 replies, 5 voices, and was last updated 8 years, 3 months ago by tuppersex.
-
AuthorPosts
-
July 22, 2013 at 7:49 pm #51970designbytracyParticipant
Is there any way that I can extend my sidebar background color to 100% of the height of the left column even if I don't have enough content in the sidebar to fill up the space? My design started from the Executive Theme.
http://www.designbytracy.com/dev/105designstudioA/about-us/
Tracy
July 22, 2013 at 11:34 pm #51983devParticipantThis is something people have been asking from WordPress for years.
You could get one of those plugins that let you create and assign different sidebars to different pages and give each one a height:xxxpx in CSS, but that would be a lot of work. Maybe there is one that will do exactly what you want, but if so, I've never heard of it.
Another way, a bit easer is to NOT show a sidebar and use the columns shortcode in a page and put what would be in the right sidebar into the far right column. I'm not sure if you can style the individual columns but I think you can.
If you find a way, let us know.
July 23, 2013 at 7:17 am #52034designbytracyParticipantUgh.
I am going to be using Simple Sidebars so that I can setup a few different ones, so I might go ahead and assign the height, but I'm not really wanting to do that because I will want the content of the sidebars to be easily flexible.
Ugh.
Tracy
July 23, 2013 at 7:42 am #52044designbytracyParticipantWell, I figured out a way to cheat it. I added a background image to the content area with just that color behind the sidebar. It works great. I just need to test it responsively and make sure there are no issues, but think I can just drop the background for smaller screen sizes and it will be ok.
Tracy
July 23, 2013 at 8:42 am #52060devParticipantThat seems to work well. I tried to replicate your code via Chrome/Inspect on the Agency theme:
http://demo.studiopress.com/agency/layouts/cs
#content-sidebar-wrap { background-image: url(images/content_bg.gif); float: left; width: 100%; }
but it didn't work. You are using Executive and they are similar so I don't know what I did wrong. I could get your gif file:
http://www.designbytracy.com/dev/105designstudioA/wp-content/themes/executive/images/content_bg.gif
but it only displayed about 150px wide on the right... and I could not get it to widen, no matter what I did. Whatever you did, you solved a problem that a lot of people have been trying to solve.
July 23, 2013 at 12:02 pm #52103designbytracyParticipantThat theme has a smaller width and my file was created 1140px wide. The code you used worked, it's just that the right side of the image was cutting off because it's too wide for that theme's width.
Tracy
July 23, 2013 at 12:13 pm #52107devParticipantI don't quite understand your analysis, but am not questioning it.
Any idea how I can make this work for Agency theme?
Thanks.
July 23, 2013 at 12:16 pm #52108designbytracyParticipantYes, make your background image that you use 960px wide.
Tracy
July 24, 2013 at 8:29 pm #52392kenMemberThis reply has been marked as private.July 24, 2013 at 8:36 pm #52394designbytracyParticipantYes, it's posted above in the thread. I still need to work through a few responsive issues.
Tracy
July 24, 2013 at 9:29 pm #52402kenMemberThis reply has been marked as private.July 24, 2013 at 9:32 pm #52403kenMemberThis reply has been marked as private.July 25, 2013 at 9:26 am #52448designbytracyParticipantCSS edits to the child theme are the correct way to make modifications and customize your site, making use of the parent-child heirarchy. Yes, if you were to update your child theme, it would override, but that doesn't really happen. Studiopress sends out all updates through the parent or framework Genesis so your edits will stay.
Tracy
August 7, 2013 at 7:22 pm #54782designbytracyParticipantJust to finish this up, I wanted to note that I added some more CSS to make sure the background didn't appear on my full-width pages. Here's the complete code that I added.
#content-sidebar-wrap { background-image: url(images/content_bg.gif); } .full-width-content #content-sidebar-wrap { background-image: none !important; }
And, my site is now live so the new URL is http://105DesignStudio.com.
Tracy
September 21, 2013 at 8:30 am #63655michiganseoMemberThanks, Tracy. Just so you know, this helped me as well. Thanks, much!
August 25, 2016 at 2:15 pm #192049 -
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.