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

    I was asked to create a new ticket after reading about the same requirement in this ticket:

    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.


    Hey lzevon,

    Please disable the htaccess login.

    Best regards,


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



    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');

    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,


    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?


    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,


    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.



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

    Best regards,


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



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

    Best regards,

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