Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1007500

    Hi Guys
    I have used these two snippets on Enfold documentation to make mobile header transparent and sticky.

    They work well but there are two issues:

    1. I want to hide entire menu when it is in transparent mode (including logo and menu icon).
    Exactly like desktop version.

    2. How to keep menu icon and logo to contain in the header once it appears on scroll. I made the header height smaller but can’t pull logo and menu icon up with it.
    Thanks.

    #1007593

    Hey alinademi,

    Thank you for writing to us.

    Please try adding this code to the Quick CSS section under Enfold > General Styling or to your child theme’s style.css file:

    CSS Snippet:

    
    /* CSS - Display header when page scroll on mobile */
    
    #header.av_header_transparency {
      display: none;
    }
    
    #header:not(.av_header_transparency) {
      display: block !important;
    }
    
    
    

    Best regards,
    Vinay

    #1007727

    Hi Vinay
    Thanks for the code. It solved problem no.1.

    For no.2

    (2. How to keep menu icon and logo to contain in the header once it appears on scroll. I made the header height smaller but can’t pull logo and menu icon up with it.)

    I tried this css on logo and it is now within the container.

    .responsive .logo img {
      max-height: 35px !important;
      top: -20px !important;
    }

    But I couldn’t figure out a solution to do the same for Burger Menu Icon. please see the mobile version now. just want icon to go higher. Appreciate your help.

    Thanks.

    #1008532

    Hi alinademi,

    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

    
    @media only screen and (max-width: 767px) {
      .responsive #top #wrap_all .main_menu {
          top: -20px;
      }
    }
    

    If you need further assistance please let us know.

    Best regards,
    Victoria

    #1008681

    Thanks Victoria,
    works like a charm!

    #1008738

    Hi,

    Great, glad you got it working. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.