Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1072007

    Hello
    For transparent pages, I’ve tried a bunch of code (see below – more there than needed but commented out to what almost works), but would like to control the color of the secondary menu and the main menu as unique BOTH before and after scrolling. Eg, (just working settings), I’d like to have this:

    BEFORE SCROLLING
    Secondary menu background is white
    Main menu background is black

    AFTER SCROLLING (reverse the colors)
    Secondary menu background is black
    Main menu background is white

    Here’s my working code – I’ve managed to target secondary before and after scrolling, but can’t target the main menu after scrolling. Also, a 1px line appears on scrolling and I can’t find the element to hide that as well. My working page is in the private section. Thank you! :)

    /* TRANSPARENT HEADERS ***************************************/
    
    /* main & sec menu before scrolling - covered with #header_main - default is transparent  */
    
    header#header.av_header_transparency {
        /* background: black; */
    	/* background: transparent; */
    	/* background-color: rgba(0,0,0,0.7); */
    }   
    
    /* sec menu after scrolling */
    
    .html_header_transparency #header_meta {
        background: black;
    }
    
    /* main menu before and after scrolling */
    
    #header_main {
    	background: black;
        /* background: rgba(0,0,0,0.3); */
        /* background-color: rgba(0,0,0,0.7); */
    	border-bottom-width: 0px !important;	
    }
    
    /* main & sec menu before scrolling */
    
    #top .av_header_transparency {
    	background: white;
    }
    
    /* main & sec menu before & after scrolling */
    
    #top #header .header_bg {
    	/* background: red !important; */
    	/* opacity: 1; */
    	/* border-bottom-width: 0px !important; */
        /* background: transparent;
        opacity: 0;
        filter: alpha(opacity=0); */
    }
    
    #1073299

    Hey webWahine,

    Here is the code you can put in Enfold > General Styling > Quick Css,  if it does not work, put into themes/enfold/css/custom.css

    
    .av_alternate_logo_active #header_main {
      background-color: #fff;
    }
    .av_header_transparency #header_main {
      background-color: #000;
    }
    #header_meta, #header_main.container_wrap {
      border-bottom: none;
      border: none;
    }
    

    If you need further assistance please let us know.

    Best regards,
    Victoria

    #1073679

    Perfect, thank you so much! I see that the css needs to be in the same order :)

    #1073722

    One more quick question, please. The 1px bottom border disappears below the main menu on scroll but is still there before scrolling. Please advise.

    /* remove 1px hor line with scroll after scrolling - not before! */
    
    #header_meta, #header_main.container_wrap {
      border-bottom: none;
      border: none; 
    }
    #1074339

    Hi webWahine,

    Try adding this css code in Quick CSS:

    .html_header_top.html_header_topbar_active.html_header_sticky #top #main {
        padding-top: 118px;
    }

    Best regards,
    Nikko

    #1074504

    Perfect! Thank you! I assume that if I set the header menu area to custom I’d have to tweak this amount a bit? :)

    #1074573

    Hi,

    Yes, if there is an adjustment on the header, you may need to make a tweak but nothing too major.

    Best regards,
    Jordan Shannon

    #1074580

    Makes sense! Thanks again; it’s hard to find the correct element sometimes :)

    #1074597

    Hi,

    I’m happy this was resolved for you. If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Different background colors for main and secondary menus on transparent pages’ is closed to new replies.