Tagged: 

Viewing 20 posts - 1 through 20 (of 20 total)
  • Author
    Posts
  • #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.

    #1112253

    Hey 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,
    Nikko

    #1112374

    Hey There Nikko – it work!

    Quick question how do you get that ID? I’d like to do that on a few pages (one below).

    #1112485

    Hi,

    You have to use the built in browser inspector in Chrome or Firefox.

    Best regards,
    Jordan Shannon

    #1112691

    Hey 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?

    #1112721

    Hi,
    In the css above the ID of “#after_layer_slider_1” in the inspector looks like this:
    2019-06-23-115924
    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:
    2019-06-23-120341
    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,
    Mike

    #1154090

    Hi,
    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.

    #1154288

    Hi,
    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,
    Mike

    #1154294

    Hi Mike,

    I try :
    #top.page #main {….
    #top #main .sidebar {…..
    #top.page #main .sidebar_left .sidebar {….
    without any success

    I 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.

    #1154599

    Hi,
    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,
    Mike

    #1154611

    Hi, Mike

    There is a misunderstanding, I would like to cover all the sidebar with my image (see image link)
    Actual Sidebar
    Full Sidebar (as I would like)
    Thanks

    #1154622

    Hi,
    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,
    Mike

    #1154623

    Nearly 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

    #1154639

    Hi,
    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,
    Mike

    #1154661

    Hi 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 question

    I’ll try to solve the other one on my own ;-)

    #1154864

    Hi,

    Thanks for the update and feedback, just let us know if you should need any further help on the topic.

    Best regards,
    Rikard

    #1155045

    Hi 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

    #1155195

    Hi,
    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,
    Mike

    #1155203

    5 stars ;-))))
    Perfect !
    Thanks a lot for your availability.

    Have a nice Week End.

    #1155224

    Hi,
    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

Viewing 20 posts - 1 through 20 (of 20 total)
  • The topic ‘Fullwidth left side bar background color’ is closed to new replies.