
-
AuthorPosts
-
April 8, 2025 at 5:00 pm #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 regardsEDIT : I fixed the space issue around the search bar
-
This topic was modified 1 week, 2 days ago by
sitadi.
April 9, 2025 at 6:39 am #1481045Hey 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,
IsmaelApril 9, 2025 at 8:13 am #1481051Thank 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 helpApril 10, 2025 at 4:47 am #1481106Hi,
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; } }
Best regards,
IsmaelApril 10, 2025 at 9:32 pm #1481154Hi,
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.
April 11, 2025 at 5:29 am #1481175April 11, 2025 at 10:14 am #1481184Hi,
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.
April 12, 2025 at 3:39 pm #1481231April 14, 2025 at 7:47 pm #1481327Hi,
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.
April 16, 2025 at 7:05 am #1481420Please someone can help me ? CSS for mobile are not working..
thank you so muchApril 16, 2025 at 11:55 am #1481434real 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 ){
April 16, 2025 at 12:31 pm #1481437Hi 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; } }
April 16, 2025 at 8:31 pm #1481459As 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; } }
April 16, 2025 at 10:23 pm #1481466I 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. -
This topic was modified 1 week, 2 days ago by
-
AuthorPosts
- You must be logged in to reply to this topic.