Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #921584

    I was asked to create a new ticket after reading about the same requirement in this ticket: https://kriesi.at/support/topic/move-search-icon-to-secondary-menu-and-right-besides-the-social-icons/

    When I added the code to the child theme’s functions.php it broke the site, so I’m not sure if there’s a newer method to make this work?

    I would like to add the search icon/functionality to the secondary menu area to the right of CONTACT.

    #921831

    Hey lzevon,

    Please disable the htaccess login.

    Best regards,
    Basilis

    #921833

    No, I can not do that, but I did provide you with the login to get past it.

    #922197

    Hi,

    We added the script in the functions.php file.

    add_action('wp_footer', 'ava_custom_script');
    function ava_custom_script(){
    ?>
    <script type="text/javascript">
    (function($) {
    	$(window).load(function() {
    		$("#menu-item-search").detach().appendTo('#header_meta #avia2-menu');
    	});
    })(jQuery);
    </script>
    <?php
    }

    We also added a few css codes in the style.css file.

    #menu-item-search a {
        line-height: 15px!important;
        height: 15px!important;
    }
    
    #header_main_alternate li#menu-item-search a {
       display: none !important;
    }

    Best regards,
    Ismael

    #922405

    Thanks Ismael, it appeared in both places (main menu and secondary menu), which we don’t want (just the secondary menu). So for now I disabled the seArch in the theme control panel (Main Menu settings). Also the search icon in the secondary header was lower than all the other items and I want it on the same line. There are lots of style fixes for me to make, but having it only appear in the secondary is where I need to start, please let me know if you have a solution for this?

    #923568

    Hi lzevon,

    I don’t see the search anywhere. Can you enable it again please, so that we can help you adjust it?

    Best regards,
    Victoria

    #923569

    I disabled it since it appeared in both menus and it’s a live site (looked terrible). But tomorrow I will put it on a sandbox site and send an update to this ticket.

    #923718

    Hi,

    Thanks for creating a sandbox/staging site. Let us know if it’s ready :)

    Best regards,
    Nikko

    #924236

    Works a treat on my training site. i’ll dig around for any conflicting styles, etc and get it squared-away. Thank you!

    #924273

    Hi,

    Glad to hear that :) Just let us know if you need further assistance.

    Best regards,
    Nikko

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Add search to secondary menu’ is closed to new replies.