Trying to add the search box to my secondary nav using a snippet I found on another post but for some reason the icon hasn’t moved, but the search bar appears in the secondary location
https://bayoubutlersauces.com/bayou-butler-sauces/
I used the code below:
add_action( ‘wp’, function() {
if ( ‘enable’ === generate_get_option( ‘nav_search’ ) ) {
remove_action( ‘generate_menu_bar_items’, ‘generate_do_navigation_search_button’ );
add_action( ‘generate_secondary_menu_bar_items’, ‘generate_do_navigation_search_button’ );
remove_action( ‘generate_inside_navigation’, ‘generate_navigation_search’ );
add_action( ‘generate_inside_secondary_navigation’, ‘generate_navigation_search’ );
}
}, 20 );