Tagged: , , , ,

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #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.

    search default fail

    The website link:
    http://www.deportivaslider.com

    Regards,
    Julian

    #437802

    Hi,
    anyone can Help me Please?

    Thank you,

    #438452

    Hi!

    Thank you for using Enfold.

    Please add this in the Quick CSS field:

    .main_menu form#searchform {
      position: absolute;
      left: -300px;
      top: 10px;
    }

    Cheers!
    Ismael

    #439517

    Hi 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.

    #439767

    Hey!

    Please go to Enfold theme options > Header > Extra Elements and check “Append search icon to main menu”

    Regards,
    Yigit

    #439918

    Hi 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

    #440847

    Hi!

    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,
    Ismael

    #441024

    Hi 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, 5 months ago by nameki.
    #442044

    Hey!

    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,
    Ismael

    #442067
    This reply has been marked as private.
    #442378

    Hi!

    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,
    Ismael

    #442478

    Hey Ismael,

    Thank u so much!. you solved it.

    Thanks,
    Julian Andres Gil

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Default Search Bar Error’ is closed to new replies.