Tagged: sidebar
-
AuthorPosts
-
June 21, 2019 at 3:48 am #1112172
Hey team,
I am trying to get the background of my left side bar to be #009aff, with white text. My left side bar is sticky and scrolls down – I’d like the color to extend all the way to the left and bottom. Is it also possible to get the HRs to extend all the way to the left too? I have found a few solutions on the forums but nothing seems to work.
Thanks in advance.
June 21, 2019 at 9:50 am #1112253Hey egeaton90,
Try adding this css code in Quick CSS, located in Enfold > General Styling:
#top.page-id-3366 #main #after_layer_slider_1 { background: #009aff; background: -moz-linear-gradient(left, #009aff 0%, #009aff 49%, #ffffff 49%, #ffffff 100%); background: -webkit-linear-gradient(left, #009aff 0%,#009aff 49%,#ffffff 49%,#ffffff 100%); background: linear-gradient(to right, #009aff 0%,#009aff 49%,#ffffff 49%,#ffffff 100%); filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#009aff', endColorstr='#ffffff',GradientType=1 ); } #top.page-id-3366 #main #after_layer_slider_1 .template-page.content { background-color: white; } #top.page-id-3366 #main .sidebar_left .sidebar { background-color: #009aff; } #top.page-id-3366 #main .sidebar_left .sidebar h3, #top.page-id-3366 #main .sidebar_left .sidebar a { color: white !important; }
Best regards,
NikkoJune 21, 2019 at 6:27 pm #1112374Hey There Nikko – it work!
Quick question how do you get that ID? I’d like to do that on a few pages (one below).
June 22, 2019 at 5:12 am #1112485Hi,
You have to use the built in browser inspector in Chrome or Firefox.
Best regards,
Jordan ShannonJune 23, 2019 at 6:02 am #1112691Hey Jordan – I’ve been using the inspector. Unfortunately I cant find the ID for FCRA like I can see with the security page. Can you post a screenshot of were you see it in the inspector?
June 23, 2019 at 6:09 pm #1112721Hi,
In the css above the ID of “#after_layer_slider_1” in the inspector looks like this:
but this ID is on every page that has a layerslider, the only reason this css is not working on other pages is due to the page id class which is right after the body ID #top:
so if you remove the #top.page-id-3366 from the css it will work on every page and post, but I recommend first testing with #top.page to target all pages and no posts, to reduce possible future conflicts.#top.page #main #after_layer_slider_1 { background: #009aff; background: -moz-linear-gradient(left, #009aff 0%, #009aff 49%, #ffffff 49%, #ffffff 100%); background: -webkit-linear-gradient(left, #009aff 0%,#009aff 49%,#ffffff 49%,#ffffff 100%); background: linear-gradient(to right, #009aff 0%,#009aff 49%,#ffffff 49%,#ffffff 100%); filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#009aff', endColorstr='#ffffff',GradientType=1 ); } #top.page #main #after_layer_slider_1 .template-page.content { background-color: white; } #top.page #main .sidebar_left .sidebar { background-color: #009aff; } #top.page #main .sidebar_left .sidebar h3, #top.page #main .sidebar_left .sidebar a { color: white !important; }
Best regards,
MikeNovember 5, 2019 at 10:00 pm #1154090Hi,
I try to do nearly the same with another background color and a background image with no success.
I replace with my color background #717377
I don’t have layer slider on my page so do I have to use : #top.page #main #after_layer_slider_1 ….
Ideally I would like the text of the link of the page being read to be black.Thanks for your help.
November 6, 2019 at 1:46 pm #1154288Hi,
Thanks for the link, I’m not sure which background your trying to change, based on the color above it looks like the sidebar, is this correct?
If you don’t have a layerslider try to not add the class “#after_layer_slider_1” in your css.Best regards,
MikeNovember 6, 2019 at 2:14 pm #1154294Hi Mike,
I try :
#top.page #main {….
#top #main .sidebar {…..
#top.page #main .sidebar_left .sidebar {….
without any successI would like to cover the entire left sidebar with the background image or the background color for the whole sidebar and the background image for its actual size
Thanks.
November 7, 2019 at 12:34 pm #1154599Hi,
Thank you for the feedback, when I look at your sidebar I do see the background-image covering the whole area, but as I understand we are not seeing the whole width of the image, see screenshot 1 below, but because of the size of the image if we force the full width it is no longer full height, see second screenshot below.
This is the css I used to force full width:@media only screen and (min-width: 1024px) { #top #main .sidebar { background: #717377; background-image: url(/wp-content/uploads/2019/11/menu-bg.png)!important; min-height: 100%!important; background-repeat: no-repeat!important; background-size: contain!important; } }
You could change your image to 240×830, image linked below.
Best regards,
MikeNovember 7, 2019 at 12:57 pm #1154611Hi, Mike
There is a misunderstanding, I would like to cover all the sidebar with my image (see image link)
ThanksNovember 7, 2019 at 1:13 pm #1154622Hi,
Oh, try adding this css and clear your browser cache:#main > div > div { padding-left: 0 !important; } #main > div > div > main { padding-left: 15px !important; }
Since you are adding your css to your child theme styles.css, after you add the go to your Quick CSS and add a blank space and save, this will force your css to be rebuilt, then clear your browser cache.
Best regards,
MikeNovember 7, 2019 at 1:20 pm #1154623Nearly perfect ;-)
I would like to cover the whole height to the side bar (with the background-color) witch is now white at the bottom the background image
Thanks again
November 7, 2019 at 1:53 pm #1154639Hi,
Ok, I added this css:#main > div > div { background-color: #717377 !important; } #main > div > div > main { background: #ffffff url(/wp-content/uploads/2019/11/main-content-bg.png) top right no-repeat scroll !important; }
Please clear your browser cache and check.
Best regards,
MikeNovember 7, 2019 at 3:43 pm #1154661Hi Mike,
Thanks for your availability.
It’s now ok for the sidebar but I have to make some adjustment in the main content (the background of the homepage is now #717377)
Anyway, you replied to my questionI’ll try to solve the other one on my own ;-)
November 8, 2019 at 6:49 am #1154864Hi,
Thanks for the update and feedback, just let us know if you should need any further help on the topic.
Best regards,
RikardNovember 8, 2019 at 3:50 pm #1155045Hi Rikard,
I Didn’t find how to cover with #717377 only the background of the left sidebar and not the entire main content.
With the ccs sent by Mike, a page without sidebar have a #717377 background (homepage for ex.)Thanks for your help
November 9, 2019 at 11:34 am #1155195Hi,
This has been adjusted so it will also work on your homepage:#top.page-parent #main > div.sidebar_left > div,#top.page-child #main > div.sidebar_left > div { background-color: #717377 !important; } #top.page-parent #main > div.sidebar_left > div > main,#top.page-child #main > div.sidebar_left > div > main { background: #ffffff url(/wp-content/uploads/2019/11/main-content-bg.png) top right no-repeat scroll !important; } #main #after_section_1 > div { padding-left: 0 !important; } #after_section_1 > div > div { padding-left: 15px !important; }
After applying the css, Please clear your browser cache and check.
Best regards,
MikeNovember 9, 2019 at 1:02 pm #11552035 stars ;-))))
Perfect !
Thanks a lot for your availability.Have a nice Week End.
November 9, 2019 at 4:49 pm #1155224Hi,
Glad we were able to help, we will close this now. Thank you for using Enfold.For your information, you can take a look at Enfold documentation here
For any other questions or issues, feel free to start new threads in the Enfold forum and we will gladly try to help you :)Best regards,
Mike -
AuthorPosts
- The topic ‘Fullwidth left side bar background color’ is closed to new replies.