• Resolved anefarious1

    (@anefarious1)


    Is there a way to have the search form appear above the menu items (categories)? Very few people actually see the search feature as it’s currently set up within the menu.

    I’m trying to boost user engagement and trying to encourage people to find what they are looking for. Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author neilgee

    (@neilgee)

    You can change in js/slick-init.js line 55 from append to prepend

    Thread Starter anefarious1

    (@anefarious1)

    I went in and did that and it looks like this:

    if ( slickNavVars.ng_slicknav.ng_slicknav_search === true ) {
    $( ‘.slicknav_nav’ ).prepend( ‘<li class=”search”><form role=”search” method=”get” id=”slicknav-searchform” action=”‘+ slickNavVars.ng_slicknav.ng_slicksearch + ‘”><input type=”text” placeholder=”‘+ slickNavVars.ng_slicknav.ng_slicknav_search_text + ‘” name=”s” id=”s” /><input type=”submit” id=”searchsubmit” value=”” /></form>‘);
    }
    if ( !slickNavVars.ng_slicknav.ng_slicknav_brand && slickNavVars.ng_slicknav.ng_slicknav_brand_text ) {
    $( ‘.slicknav_menu’ ).prepend( ‘<p class=”slicknav-logo-

    I don’t see any difference on the front end. There is another place in the code the reads .appendTo

    How can I get it to work? Thanks!

    Plugin Author neilgee

    (@neilgee)

    You’ll need to clear all caches, plugins and/or CDNs

    Thread Starter anefarious1

    (@anefarious1)

    Wonderful, seriously. Thank you

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

The topic ‘Search form above Menu Items’ is closed to new replies.