-
AuthorPosts
-
April 5, 2016 at 8:23 am #608112
Hi there!
We tried to add the search bar to the mobile menu according to
https://kriesi.at/support/topic/search-widget-only-in-mobile-view/#post-517247
The search icon appears, but it doesn’t work by hovering / clicking it.
Would you please have a look at our ‘Edit Functions’ and the ‘Quick CSS’?
Thanks and best regards
BerndApril 6, 2016 at 5:23 am #608656Hey profil77!
Thank you for using Enfold.
The icon jumps on mouse hover. It’s because of the following code:
.html_header_top.html_bottom_nav_header #top .main_menu ul:first-child>li:hover { z-index: 1000; position: relative; }
In order to fix it, add this code:
.html_header_top.html_bottom_nav_header #top .main_menu ul:first-child>#menu-item-search:hover { position: absolute; }
Regards,
IsmaelApril 6, 2016 at 9:13 am #608755Hi Ismael!
Great, thanks. We added the code to the ‘max 767-area’ of Quick CSS (is that right?) and everything works fine.
Would you please have a look at ‘Edit Functions’: Is the declaration of ‘$search’ okay and do we have to modify something, when we will get the real menu-items – at the moment we work with custom menu items.
Thanks a lot and best regards
BerndApril 7, 2016 at 2:59 am #609273Hey!
What do you mean by custom menu items? Did you set the menu as Enfold Main Menu?
Best regards,
IsmaelApril 7, 2016 at 8:21 am #609423Hi Ismael!
At the moment we created a few #-links as menu items for the main menu.
The solution in https://kriesi.at/support/topic/search-widget-only-in-mobile-view/#post-517247 works with page-links as menu items – so ‘$search’ contains classes like page_item, page-item-18 or current_page_item.
Best regards
Bernd- This reply was modified 8 years, 7 months ago by profil77.
April 8, 2016 at 3:16 am #609960Hey!
I see. Please remove the current-menu-item and current_page_item class attribute.
Cheers!
IsmaelApril 8, 2016 at 8:51 am #610099Thanks a lot, Ismael, the mobile search is working fine.
The best solution would be to add an ENFOLD-theme-option for a mobile serach ;)
Best regards
BerndApril 8, 2016 at 10:01 am #610134Hey!
Glad it worked :) and thank you for your feedback. Please feel free to request such feature here – https://kriesi.at/support/enfold-feature-requests/
And if there are features that you wish Enfold had, you can request them and vote the requested ones here – https://kriesi.at/support/enfold-feature-requests/Best regards,
Vinay -
AuthorPosts
- You must be logged in to reply to this topic.