Add search popup to menu
-
Topic
-
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.
I’m trying to add the search popup to the right of the menu:
add_filter( ‘themeblvd_primary_menu_args’, ‘jma_menu_filter’ );
function jma_menu_filter($args){
global $xx;
$args[‘items_wrap’] = ‘%3$s’ . themeblvd_search_popup() . ”;;
return $args;
}
but the popup outputs before expected. Is there an arg I can add to themeblvd_search_popup?
thx,
john
I think in your context you’re meaning to use themeblvd_get_search_popup().
thanks, that did the trick. Unfortunately I now get three search icons in the sticky menu. Two from the theme, plus the one I added gets carried over. I’ll keep digging to find the source of this.
thx,
john
I would suggest hooking to the action themeblvd_header_menu_addon, and just outputting it there. Maybe something like this:
add_action('themeblvd_header_menu_addon', 'themeblvd_search_popup');