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.

Tagged: ,

Add search popup to menu

  • Creator
    Topic
  • #19659
    John
    Participant

    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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • #19663
    Jason Bobich
    Keymaster

    I think in your context you’re meaning to use themeblvd_get_search_popup().

    #19691
    John
    Participant

    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

    #19692
    Jason Bobich
    Keymaster

    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');
Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.