-
AuthorPosts
-
August 5, 2017 at 2:47 am #834561
Hi, I just implemented the custom css on http://kriesi.at/documentation/enfold/switching-to-mobile-menu-on-higher-resolutions/ which is great– thank you! — but it doesn’t include the appended search icon (as the default css does now). Is there a way to include the the appended search icon with this css.
I have the custom css set to (max-width: 1224px) and (min-width: 990px) — so if you look between those widths on https://newhorizons-sfv.org/ you can see the search icon is missing. At widths narrower than 990px, the default css kicks in and the search icon shows.
Thanks and let me know if you have any questions.
August 6, 2017 at 8:22 am #834968Hey sky19er,
You have this in your custom.css file:
@media only screen and (max-width: 1224px) and (min-width: 990px) { #top .av_mobile_menu_tablet .av-main-nav .menu-item { display: none!important; } }
Could you try to remove it to see if that helps please?
Best regards,
RikardAugust 7, 2017 at 4:12 am #835185Huh? That’s basically the bottom half of the code from http://kriesi.at/documentation/enfold/switching-to-mobile-menu-on-higher-resolutions/ — if I remove that, I’m left with both the burger AND the text version of the nav showing between those widths.
August 12, 2017 at 6:20 am #837738Hi,
Please include the following css codes inside your css media query.
.responsive #top .av_mobile_menu_tablet .av-main-nav .menu-item-avia-special { display: block; }
Best regards,
IsmaelAugust 13, 2017 at 5:58 am #838128Sorry, that’s still not working for me — I’m still not getting the magnifying glass. Here’s what I have — I’m trying to show the burger AND the magnifying glass at anything less than 1224px — right now, only the burger is showing — what should I add to or remove from this media query? Thanks!
@media only screen and (max-width: 1224px) { .av-burger-menu-main { display: block!important; } #top .av_mobile_menu_tablet .av-main-nav .menu-item { display: none!important; } .responsive #top .av_mobile_menu_tablet .av-main-nav .menu-item-avia-special { display: block; } }
August 13, 2017 at 10:43 pm #838364Hi,
Try inserting this code in that media query:
#top .av_mobile_menu_tablet .av-main-nav #menu-item-search { display: block !important; }
Hope this helps :)
Best regards,
NikkoAugust 14, 2017 at 1:43 am #838393Thanks, getting closer, but the search icon is small — not big and blue, like your default mobile search icon — and the positioning of the burger and the search icon is a little lower/different than what you guys have in your code.
So now I get this between 1224 and 990:
https://www.evernote.com/shard/s320/sh/923bb6cf-2035-44e9-ba40-de48d0f0f3eb/And this under 990:
https://www.evernote.com/shard/s320/sh/cee31b5f-3f32-4ddc-9ea3-dffd1a52a3a0/67271424d8d47dec3fb336c3aa23b158I wish it could be as under 990 for both. Also, do I really need ALL this code?
@media only screen and (max-width: 1224px) { .av-burger-menu-main { display: block!important; } #top .av_mobile_menu_tablet .av-main-nav .menu-item { display: none!important; } .responsive #top .av_mobile_menu_tablet .av-main-nav .menu-item-avia-special { display: block; } #top .av_mobile_menu_tablet .av-main-nav #menu-item-search { display: block !important; } }
Thanks!
August 14, 2017 at 3:56 am #838419Hi,
Try adding this code inside the media query:
#top #header .av-main-nav > li#menu-item-search > a { font-size: 24px; }
Hope this helps :)
Best regards,
NikkoSeptember 7, 2017 at 9:38 pm #849253That makes the search icon bigger, but the whole thing is still apparently being handled differently than it is in your default code, for below 990px width. The search icon is grey instead of blue, and both are positioned at the bottom of the header instead of at the top. Isn’t there a way to just do exactly what you do at 990, but at a wider width?
Thanks.
September 8, 2017 at 8:49 am #849483Hi,
It’s been a while. Could you please provide a screenshot of the issue? The mobile menu including the search icon looks fine on mobile view.
Best regards,
IsmaelSeptember 8, 2017 at 6:28 pm #849676Right, sorry, I thought I sent you a private reply back in August, but maybe it never went through.
Anyway, so, now, between 1224 and 990, I have this: https://www.evernote.com/shard/s320/sh/cab8e187-5a94-4f15-98f6-65a143cb23ee/5445ecdef82ee2312c3200df2cb8b530 — looks like the burger and search icon are aligned bottom in the header and the search icon is gray.
And under 990 it’s your default mobile css: https://www.evernote.com/shard/s320/sh/cab8e187-5a94-4f15-98f6-65a143cb23ee/5445ecdef82ee2312c3200df2cb8b530 — looks like the burger and search icon are aligned top in the header and the search icon is blue.
So, isn’t there a way to set your default mobile css to kick in at 1224 instead of 990?
Thanks again.
September 9, 2017 at 5:51 am #849841Hi,
Thank you for the update. However, I don’t see any difference between the two screenshots. Is that the correct screenshot url?
Best regards,
IsmaelSeptember 9, 2017 at 6:25 am #849853Oops, sorry — the second link should’ve been https://www.evernote.com/shard/s320/sh/a247515f-e3f8-4bc0-a2bb-c1794eb8c95e/eb89491c29bf0aa83b5a48823dc7ee52
September 11, 2017 at 6:56 am #850360Hi,
Thank you for the update. Please try this code in the Quick CSS field.
@media only screen and (max-width: 1224px) and (min-width: 768px) { .responsive.html_mobile_menu_tablet #top #header_main > .container .main_menu .av-main-nav > li > a { height: 90px; line-height: 90px; } }
Best regards,
IsmaelSeptember 11, 2017 at 6:43 pm #850625Thanks, but that didn’t seem to work — here’s what I saw between those widths with that code: https://www.evernote.com/shard/s320/sh/e180d989-47b3-4a91-be1a-f9bfc8c41671/2cff916433d32c1a2ea185dac6e9b89b
September 12, 2017 at 8:35 am #850855Hi,
We updated the code. Please try it again and don’t forget to remove the browser cache. This is the screenshot ( screen width: 1024px ).
Best regards,
IsmaelSeptember 12, 2017 at 5:40 pm #851130What do you mean you updated the code? Where? What’s the new code? I flushed the cache, but I’m still seeing my same old custom css in my custom css plugin pane and I’m still seeing the same behavior/styling I described in https://kriesi.at/support/topic/switching-to-mobile-menu-on-higher-resolutions/#post-849676 — the same behavior/styling associated with my css.
September 13, 2017 at 7:32 am #851403Hi,
What do you mean you updated the code?
We updated the code above. We’ll add it again here.
@media only screen and (max-width: 1224px) and (min-width: 768px) { .responsive.html_mobile_menu_tablet #top #header_main > .container .main_menu .av-main-nav > li > a { height: 90px; line-height: 90px; } }
The code looks the same but it’s not. Did you check the screenshot? Is that what you needed?
Best regards,
IsmaelSeptember 14, 2017 at 9:29 pm #852310Ah, I didn’t know you could update code in a previous post :) So, thanks again, but it’s still not working for me — now I’m seeing this between those widths (the menu moves up, but doesn’t switch to mobile): https://www.evernote.com/shard/s320/sh/3945db37-644a-4964-9ad2-63dd090135d5/8961e9e14954e293a4f5c9ee8c5ed23b
September 15, 2017 at 10:59 am #852485Hi,
I think you have an invalid css code or modification. The latest css modification that we suggested should not affect the desktop menu. Please post the login details here so that we can check the css modifications.
Best regards,
IsmaelSeptember 15, 2017 at 10:15 pm #852694OK, credentials in Private Content. My custom css is in Appearance > Custom CSS. I added your css at the top. Note, right below that is some custom css I added to make sure there’s enough room in mobile views for the logo and background image in this header. Please let me know if you have any questions. Thanks!
September 19, 2017 at 5:15 am #853671Hi,
We modified the code in the Custom CSS field. Please remove browser cache or hard refresh before checking the page.
NOTE: You should put every css media queries at the very bottom of the css field.
Best regards,
IsmaelSeptember 19, 2017 at 5:58 pm #853972OK, thanks so much!
September 20, 2017 at 7:31 am #854217 -
AuthorPosts
- The topic ‘Switching to mobile menu on higher resolutions’ is closed to new replies.