Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • #736829


    I refer to this question and solution:,
    where someone asked how to move the search icon from the main menu to the submenu.

    But in my case, I would like to have it like this AND at the right side of the social icons in the secondary menu?
    My header settings are like this (site is not live yet!):

    Could you please give me the change of the snippet solution from here, but in that way, that the search icon appears at the right side of the social icons like the image shows here (only the search icon – and the search FIELD only when someone clicks on the search icon)?

    Thanks a lot!


    Hey Chris,

    Please try adding this code to the Quick CSS section under Enfold > General Styling or to your child themes style.css file:

    li#menu-item-search a {
        line-height: 30px!important;
        height: 30px!important;

    then add following code to Functions.php file in Appearance > Editor

    function av_move_search(){
    jQuery("#menu-item-search").detach().appendTo('#header_meta ul.social_bookmarks')
    add_action('wp_footer', 'av_move_search');

    Best regards,


    works perfectly, thank you very much!



    Great, glad we could help :-)

    Please let us know if you should need any further help on the topic.

    Best regards,


    I too would like to be able to do this, but it breaks my site…

    This page isn’t working is currently unable to handle this request.
    HTTP ERROR 500

    So I removed the code from my functions.php for now (so the site works), but left the CSS in place. I want the search icon next to CONTACT in the secondary menu at the top of the page.

    Any help is greatly appreciated.

    • This reply was modified 6 years, 4 months ago by Basilis.


    Please create a new ticket and add your credentials there for security reasons.

    Thank you

    Best regards,

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Move Search Icon to Secondary Menu AND right besides the social icons’ is closed to new replies.