• Resolved taysabr

    (@taysabr)


    Hello!

    I’m trying to add AWS in my site’s navigation bar and I’ve got this piece of code. It works fine with my theme (The Shop), but I would like to change it into AWS, is it possible to help me modify the code according to this plugin? Or if there’s an easiest solution, please let me know.
    Thank you!

    /* ADD SEARCH BAR NAVIGATION BAR */
    add_filter(‘wp_nav_menu_items’,’add_search_box’, 10, 2);
    function add_search_box($items, $args) {
    ob_start();
    get_search_form();
    $searchform = ob_get_contents();
    ob_end_clean();
    if( $args->theme_location == ‘primary’ )
    $items .= ‘<li style=”float: right; vertical-align: center;”>’ . $searchform . ”;
    return $items;
    }

    https://wordpress.org/plugins/advanced-woo-search/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter taysabr

    (@taysabr)

    That’s ok, I only used :

    echo do_shortcode( ‘[aws_search_form]’ );

    into the header’s php file and it worked!
    Thanks anyway 🙂

    Plugin Author ILLID

    (@mihail-barinov)

    Hi. Glad that you solve the problem

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘AWS in navigation bar’ is closed to new replies.