Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #1481010

    Hi,

    I need help with my header. My client wants the burger menu to be to the left of the centered logo (not below it). I also have a search bar in a custom widget in the header that I want to appear below the logo, right in the center. Attached is a screenshot of the current view and what I want to achieve. Can you help me? I’ve already tried a lot of CSS codes but I can’t seem to get something clean and responsive on mobile and tablet.
    Thank you very much for your help.
    Best regards

    EDIT : I fixed the space issue around the search bar

    • This topic was modified 1 week, 2 days ago by sitadi.
    #1481045

    Hey sitadi,

    Thank you for the inquiry.

    You can add this css code to align the burger menu with the logo.

    .av-burger-menu-main.menu-item-avia-special {
        left: 0 !important;
        top: -70px;
    }

    Best regards,
    Ismael

    #1481051

    Thank you for your feedback.
    Before asking you I had tried this solution but I was wondering if there was no other solution by moving the logo into a container aligned with the logo.
    When I switch to mobile or tablet, the search bar display disappear and I can’t display it, I would like it over the entire width of the screen, under the logo.
    Thank you for your help

    • This reply was modified 1 week, 1 day ago by sitadi.
    • This reply was modified 1 week, 1 day ago by sitadi.
    • This reply was modified 1 week, 1 day ago by sitadi.
    • This reply was modified 1 week, 1 day ago by sitadi.
    #1481106

    Hi,

    Thank you for the update.

    The menu is set to be below the logo, so this has be adjusted with css. To make sure that the search bar is still visible on mobile view and that the burger menu is correctly placed, please add this css code:

    @media only screen and (max-width: 768px) {
    
      /* Add your Mobile Styles here */
      .responsive #header_main_alternate {
        display: block;
      }
    
      .responsive #top #header_main_alternate .av-main-nav .menu-item-avia-special {
        display: none !important;
      }
    
      .responsive #top #header .main_menu {
        width: auto !important;
      }
    }

    View post on imgur.com

    Best regards,
    Ismael

    #1481154

    Hi,

    Thank you for your help, however when I display the mobile mode, I have two menus that appear and I don’t know what causes this duplicate.

    #1481175

    Hi,

    We adjusted the css code a bit. Please try it again.

    Best regards,
    Ismael

    #1481184

    Hi,

    It works, thanks to you.
    Is it possible to add a CSS code to reduce the header when scrolling the page?

    Best regards,
    Ida

    • This reply was modified 6 days, 8 hours ago by sitadi.
    #1481231

    Hi,
    Please use the “Shrinking Header” option at Enfold Theme Options ▸ Header ▸ Header behavior ▸ Shrinking Header
    Screen Shot 2025 04 12 at 9.38.16 AM

    Best regards,
    Mike

    #1481327

    Hi,

    It seems that CSS codes for mobile and tablet screens are not taken into account. I can’t apply the desired settings for mobiles and tablets.
    What is wrong ?

    Thank you again for your help,

    • This reply was modified 2 days, 8 hours ago by sitadi.
    #1481420

    Please someone can help me ? CSS for mobile are not working..
    thank you so much

    #1481434

    real mobile devices do not have a shrinking header! – i do not see your conversation on private content area – and i do not see your site – but if you got css rules with classes like header-scrolled – this will not work on mobile devices!
    See line 81 in avia-snippet-sticky-header.js :

    if( shrinking && ! isMobile ){
    
    #1481437

    Hi Guenni007,

    It’s not about shrinking header the problem now, it is about the CSS codes for mobile and tablets which is not applied on my site, I don’t understand what happen ?

    I added several CSS codes for mobile and tablets but they are not taken into account:

    /* 📱 MOBILE (jusqu'à 768px) */
    
    @media only screen and (max-width: 768px) {
    
      /* Add your Mobile Styles here */
      .responsive #header_main_alternate {
        display: block;
      }
    
      .responsive #top #header .main_menu {
        width: auto !important;
      }
    
      #header_meta .phone-info-custom::before {
        background-color: #ffffff !important;
      }
        .responsive #top #wrap_all .main_menu {
            left: 0px !important;
        }
        .responsive #top .logo {
            width: 50% !important;
        }
    
    .responsive #top #wrap_all .container {
        float: right !important;
    }
    
    #header_meta .phone-info-custom {
        font-size: 15px;
        font-weight: 800;
        color: #000000;
        padding-top: 70px;
    }
    #header_meta .container {
         max-width: 50% ;
        margin-left: 0px;
        margin-right: 0px !important;
        padding-left: 0px !important;
        padding-right: 0px !important;
    }
    
    /*PHONE INFO*/
    #header_meta .phone-info-custom::before {
      display: none !important;
    }
    .phone-info {
        padding-top: 5px !important;
    }
    
    /*LOGO*/
    .responsive .logo img {
        float: right !important;
    }
    
        .responsive #top .logo {
            position: static;
            display: table;
            height: 80px!important;
            float: none;
            padding: 0;
            border: none;
            width: 95%;
    }
    .main_menu {
        margin-left: 0px !important;
    }
    a {
        padding-left: 0px !important;
    }
    @media only screen and (max-width:767px) {
        .responsive #top #header_main > .container .main_menu .av-main-nav > li > a {
            padding-left: 0;
        }
    }}
    
    /* 💻 TABLETTE (entre 769px et 1024px) */
    @media only screen and (min-width:768px) and (max-width:989px) {
        .responsive #top #wrap_all .av_mobile_menu_tablet .main_menu {
            left: 0 !important;
        }
    }

    Capture d’écran 2025 04 16 à 12.27.29
    Capture d’écran 2025 04 16 à 12.27.39

    #1481459

    As I said, as a participant I cannot see your private message area, so I cannot see a link if it has been posted. The link would be necessary for verification – because a screenshot is not meaningful enough to give advice.

    if that is your css – the

    @media only screen and (max-width: 768px) {
    

    is nested with a nother media query.
    your :

        @media only screen and (max-width:767px) {
            .responsive #top #header_main > .container .main_menu .av-main-nav > li > a {
                padding-left: 0;
            }
        }

    is inside another media query ( with the same settings )

    next hint:
    use for the max-width media query the odd setting – and for min-width the even ones.

    I don’t know if the above leads to conflicts, but put this as code instead:

    
    @media only screen and (max-width: 767px) {
        /* Add your Mobile Styles here */
        .responsive #header_main_alternate {
            display: block;
        }
    
        .responsive #top #header .main_menu {
            width: auto !important;
        }
    
        #header_meta .phone-info-custom::before {
            background-color: #ffffff !important;
        }
        .responsive #top #wrap_all .main_menu {
            left: 0px !important;
        }
        .responsive #top .logo {
            width: 50% !important;
        }
    
        .responsive #top #wrap_all .container {
            float: right !important;
        }
    
        #header_meta .phone-info-custom {
            font-size: 15px;
            font-weight: 800;
            color: #000000;
            padding-top: 70px;
        }
        #header_meta .container {
            max-width: 50% ;
            margin-left: 0px;
            margin-right: 0px !important;
            padding-left: 0px !important;
            padding-right: 0px !important;
        }
    
        /*PHONE INFO*/
        #header_meta .phone-info-custom::before {
            display: none !important;
        }
        .phone-info {
            padding-top: 5px !important;
        }
    
        /*LOGO*/
        .responsive .logo img {
            float: right !important;
        }
    
        .responsive #top .logo {
            position: static;
            display: table;
            height: 80px!important;
            float: none;
            padding: 0;
            border: none;
            width: 95%;
        }
        .main_menu {
            margin-left: 0px !important;
        }
        a {
            padding-left: 0px !important;
        }
    
        .responsive #top #header_main > .container .main_menu .av-main-nav > li > a {
            padding-left: 0;
        }
    }
    
    /* 💻 TABLETTE (entre 769px et 1024px) */
    @media only screen and (min-width:768px) and (max-width:989px) {
        .responsive #top #wrap_all .av_mobile_menu_tablet .main_menu {
            left: 0 !important;
        }
    }
    #1481466

    I have pasted the CSS code in WP Code and it is ok.

    I pasted the CSS code in the WP CODE plugin and it works again, I was able to create my CSS codes for tablet and mobile, they are well taken into account, while in the QUICK CSS window, they do not apply. How is this done?
    I can’t put the link in clear because the site is not yet online.
    Thank you for the time you gave me.

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