-
AuthorPosts
-
April 30, 2015 at 12:02 am #437137
Hi Kriesi Team
I have a problem to set a default search bar on Main menu.
First i put this code on Quick CSS to hide the default search icon on Main menu:
li#menu-item-search {
display: none;
}then, i paste this code on functions.php:
add_action(‘ava_inside_main_menu’, ‘ava_inside_main_menu_mod’);
function ava_inside_main_menu_mod() {
get_search_form();
}But this procedure place the bar above the buttons and Slider, you can help me how i can to move or adjust the search bar right the main menu buttons.
The website link:
http://www.deportivaslider.comRegards,
JulianApril 30, 2015 at 9:45 pm #437802Hi,
anyone can Help me Please?Thank you,
May 3, 2015 at 3:45 am #438452Hi!
Thank you for using Enfold.
Please add this in the Quick CSS field:
.main_menu form#searchform { position: absolute; left: -300px; top: 10px; }
Cheers!
IsmaelMay 5, 2015 at 5:44 am #439517Hi Ismael,
thank you this its ok before i upgrade enfold theme.
but After Upgrade the search Form are hide. how i can fixed it ?The Quick CSS code are the same before and after upgrade enfold.
Regards,
Julian.May 5, 2015 at 3:46 pm #439767Hey!
Please go to Enfold theme options > Header > Extra Elements and check “Append search icon to main menu”
Regards,
YigitMay 5, 2015 at 6:20 pm #439918Hi Yigit,
The “Append search icon to main menu” option is checked, but no resolved the issue. I try too unchecked but no work.
Regards,
Julian Andres Gil
May 7, 2015 at 9:43 am #440847Hi!
Add the code again in the functions.php file:
add_action('ava_inside_main_menu', 'ava_inside_main_menu_mod'); function ava_inside_main_menu_mod() { get_search_form(); }
If you don’t want to lose this modification every time you update the theme, use a child theme: http://kriesi.at/documentation/enfold/using-a-child-theme/
Regards,
IsmaelMay 7, 2015 at 4:05 pm #441024Hi Ismael,
I add the code again in the functions.php but no works.
here is the code on Quick Css
This is functions code
The Append search icon to main menu is checked.
Regards,
Julian Andres- This reply was modified 9 years, 7 months ago by nameki.
May 10, 2015 at 5:02 am #442044Hey!
Looks like the single quote symbols in the code are incorrect. Please check the code again. Post the login details here so that we can check it.
Best regards,
IsmaelMay 10, 2015 at 7:29 am #442067This reply has been marked as private.May 11, 2015 at 11:59 am #442378Hi!
The single quotes symbols in the code are incorrect. Please check it now: http://deportivaslider.com/
If you want to hide the search form on mobile. Use this:
@media only screen and (max-width: 989px) { .main_menu form#searchform { display: none; }}
Best regards,
IsmaelMay 11, 2015 at 3:09 pm #442478Hey Ismael,
Thank u so much!. you solved it.
Thanks,
Julian Andres Gil -
AuthorPosts
- The topic ‘Default Search Bar Error’ is closed to new replies.