Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #669498

    Good Afternoon,

    So i wan’t to add search bar directly in the menu not with a wen (look https://Carnegy.fr/) you can look wen in the homepage.

    Best Regards,
    Noé

    #669508

    I precise i wan’t the real search bar in the menu directly.

    Best Regards,
    Noé

    #669938

    Please help me

    #669950

    Hey!

    Please add following code to functions.php file in Appearance > Editor

    add_shortcode('avia_search', 'get_search_form');
    
    function add_custom_tooltip(){
    ?>
    <script>
    jQuery(window).load(function(){
    jQuery('.only-mobile-menu-search a').removeAttr('href');
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'add_custom_tooltip');

    and then go to Appearance > Menus and add a new link and add following into navigation label

    [avia_search]

    and then click “Screen options” on the top right side of the screen and check “CSS Classes”. Then edit your search menu item and give it custom CSS class “only-mobile-menu-search” and save.

    Cheers!
    Yigit

    • This reply was modified 8 years, 4 months ago by Yigit.
    #669998

    Good Afternoon,

    When i add in function.php that’s code :

    add_shortcode('avia_search', 'get_search_form');
    
    function add_custom_tooltip(){
    ?>
    <script>
    jQuery(window).load(function(){
    jQuery('.only-mobile-menu-search a').removeAttr('href');
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'add_custom_tooltip');/code>

    My website doesn’t work and when I delete it, it’s work,

    Best Regards,
    Noé

    #670004

    Hey!

    Excuse me, i did not close the tag properly. I have updated the code i posted here – https://kriesi.at/support/topic/search-bar-4/#post-669950. Please try it now

    Best regards,
    Yigit

    #670010

    Good Afternoon,

    Thank’s lot, but it’s doesn’t work i just have blank space not the search menu.

    You will find in private content the access of my website

    Best Regards,
    Noé

    #670247

    I’m not sure but you have received in private content the login and password ?

    Best Regards,
    Noé

    #670276

    Hi!

    I applied the changes however i faced menu item limit on your server. Please refer to this post to solve it – http://kriesi.at/documentation/enfold/enfold-menu-item-limit/

    Regards,
    Yigit

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