-
AuthorPosts
-
March 11, 2018 at 7:54 pm #925242
Hey there,
I just realized that on my page the search icon in the horizontal menu isn’t shown any longer. I don’t know when and why it disappeard, and I also have no idea how to get it back. (Screenshot of the problem)
Do I have to change some settings or stuff? Could you please have a look at my page?Thanks in advance for your help!
Best regards,
JamieMarch 13, 2018 at 6:52 am #925884Hey ping-pong,
You have this CSS in your child theme:
#menu-item-search, .av-burger-menu-main { display: none !important; }
Please remove it and it should come back after that.
Best regards,
RikardMarch 14, 2018 at 12:01 am #926340Hey,
you’re right – when I remove the code the search icon comes back. But then it’s also visible in the mobile version where I don’t want to show it. (see screenshot)
Is there any way to only have the search icon in the desktop version and remove it for the mobile one?
Some time ago it worked like this with the code that now also prevents the icon to show on desktop.Best regards,
JamieMarch 14, 2018 at 8:51 am #926487Hi Jamie,
Please try this instead of your previous code:
@media only screen and (max-width: 767px) { #menu-item-search, .av-burger-menu-main { display: none !important; } }
Best regards,
RikardMarch 17, 2018 at 7:24 pm #928540Hi Rikard,
your code works for the search icon.
But on the top of the page I now have a grey area plus my header doesn’t move anymore (meaning it stays fixed). I attached two screenshots where you can see the issue – grey area and staying header
What can I do so that the page’s layout isn’t broken when the search icon is shown in desktop but not in mobile view?For now I went back to the code where the search icon is also shown in the mobile version.
Best regards,
Jamie- This reply was modified 6 years, 9 months ago by ping-pong.
March 18, 2018 at 8:54 am #928651Hi,
Thanks for the screenshot, though I can’t reproduce either of those results on my end using Chrome. Did you try to clear your browser cache and reload the page?
Best regards,
RikardMarch 18, 2018 at 4:20 pm #928730Hi,
I cleared the cache and reloaded the page. Both results happen also when I use Chrome instead of my default browser Firefox. I changed the code back to the one that functions, so perhaps that’s why you couldn’t reproduce either of the results?Now in my Quick CSS there is
/* MOBILE */ #mobile-advanced, .av-burger-menu-main {display: none !important; } /* NOT WORKING CORRECTLY @media only screen and (max-width: 767px) { #menu-item-search, .av-burger-menu-main { display: none !important; } } */
It works but the search icon is shown in mobile version.
When commenting out the first code block and activating the second, the search icons are shown correctly (meaning it’s shown in desktop version but not on mobile) but the issue from the earlier screenshots happen.Best regards,
Jamie- This reply was modified 6 years, 9 months ago by ping-pong.
March 19, 2018 at 9:13 am #928936Hi,
Thanks for the feedback, what I’m seeing on my end is in the image in private. Is that what you see as well?
Best regards,
RikardMarch 19, 2018 at 1:55 pm #929054Hi,
right now that’s exactly what I see too. But in the mobile view (or when you reduce the size of the browser window) then there’s the search icon visible what shouldn’t be there.
As soon as I use the code you provided, the search icon disappears but then there’s this grey bar and the header is fixed (as shown on the last two screenshots I’ve send you).Best regards,
JamieMarch 20, 2018 at 7:05 am #929540Hi Jamie,
Thanks for the feedback. I took the CSS I gave you and removed the comments around it, and put it on the top of your Quick CSS. I can’t see the issues happening like in your screenshot when I update the site. I checked in an incognito window as well, so I was not getting cached results. Could you have a look on your end as well please?
Best regards,
RikardMarch 25, 2018 at 4:27 pm #932627Hi Rikard,
now it looks as it should – thank you very much! :)
Best regards.March 26, 2018 at 8:50 am #932859Hi,
Glad that we are able to help :) Thanks for using Enfold and have a great day!
Best regards,
Nikko -
AuthorPosts
- The topic ‘Search Icon missing in horizontal menu’ is closed to new replies.