New Landing How can we help? Themeforest Theme Support Neighborhood Replace search menu with Predictive search plugin

Viewing 15 posts - 1 through 15 (of 25 total)
  • #15358
    [email protected]
    Member
    Post count: 57

    Hi there,

    I would like to change the original search function from the Neighborhood theme with the predictive search plugin.

    The plugin is active and I also add the code

    <?php if(function_exists(‘woo_predictive_search_widget’)) woo_predictive_search_widget(); ?>

    to header.php

    Unfortunately this code does activate the plug in, but not at the right place.

    Does anyone know how/where to replace the search menu in the neighnorhood theme (keeping the neighborhood style would be a plus).

    Thank you very much for your collaboration

    Fabio

    ps. this is my website: http://timeforyourskin.com/

    and this is the url of the plugin: http://a3rev.com/shop/woocommerce-predictive-search/

    #15758
    Melanie – SUPPORT
    Member
    Post count: 11032

    Hey there,

    please contact the plugin developers about this as they should be the specialists when it comes to including their plugin 🙂 Cheers

    #16099
    [email protected]
    Member
    Post count: 57

    Dear Melanie,

    Thankd for your quick reply.

    The plugin developer has already done it once for me, but since I needed to update the theme to get the zoom in the product gallery I lost the edit. And the developer has not been collaborative then since.

    So can you please tell me where/in which folder can I find the search bar in main menu (teh one in the header close to shopping cart) and (eventually) how to edit it.
    Last, is it possible to get back edited with neighborhood update.
    In that case it would be easy to fix it.

    Thanks again for your great theme and great customer support

    Fabio

    #16176
    laranz – SUPPORT
    Member
    Post count: 3186
    #16309
    [email protected]
    Member
    Post count: 57

    Dear Laranz,

    Thanks for your quick reply.

    Unfortunately I have already read the documetation before posting, but I cannot find in header.php the “original serach bar” that I want to substitute. If I paste the suggested code in header.php though it distorces the theme.

    Any ideas where to find the code that is setting the “original” search bar?

    Kindly regards

    Fabio

    #16756
    Melanie – SUPPORT
    Member
    Post count: 11032

    You can find our search form in theme-class.php

    cheers!

    #16946
    rsae
    Member
    Post count: 39

    I’m looking to implement the Predictive Search plug-in, as well. I can’t find the file “theme-class.php” that you referenced. Can you please be more specific where that file can be found (i.e. “includes/theme-class.php)

    Thanks!

    #16947
    [email protected]
    Member
    Post count: 57

    Same issue for me

    Please let us know how to access theme-class.php

    Thanks

    Fabio

    #17211
    Melanie – SUPPORT
    Member
    Post count: 11032

    Phew I’m sorry for that, I must have been looking at the wrong theme here… the file you’ll want to look for is sf-header.php

    neighborhood > includes > swift-framework > sf-content-display > sf-header.php

    Cheers!

    #17478
    rsae
    Member
    Post count: 39

    Thanks for the clarification on the page. There are several areas that note “search” in that file. Where exactly should this code for Predictive Search go in the sf-header.php file?

    <?php if(function_exists(‘woo_predictive_search_widget’)) woo_predictive_search_widget(); ?>

    This is a pretty common plug-in for Woocommerce stores, so I’m sure other people who bought the Neighborhood theme would really benefit from this explanation. Appreciate it!

    #17717
    Melanie – SUPPORT
    Member
    Post count: 11032

    $menu_full_output .= ‘<li class="menu-search parent"><a href="#"><i class="icon-search"></i></a>’. "\n";

    outputs the search icon.

    Cheers

    #17788
    rsae
    Member
    Post count: 39

    Sorry, but that didn’t work. When I replace:

    $menu_full_output .= ‘<li class=”menu-search parent”><i class=”icon-search”></i>’. “\n”;

    with

    <?php if(function_exists(‘woo_predictive_search_widget’)) woo_predictive_search_widget(); ?>

    I get a parse error.

    #18175
    Melanie – SUPPORT
    Member
    Post count: 11032

    Only woo_predictive_search_widget();

    #18245
    rsae
    Member
    Post count: 39

    I’m sorry, I don’t understand your answer.

    To clarify my request, I don’t want a search widget. I’d like to replace the current search in the header with the Predictive Search Plug-in. I am able to do that in the header of my previous theme (Maya) with the following code:

    <?php if(function_exists(‘woo_predictive_search_widget’))woo_predictive_search_widget(5, 0,
    5, 5, 0, 0, 0, 100, ‘padding-bottom:20px;width:220px;float:left;’, 0);
    ?>

    Thank you

    #18280
    [email protected]
    Member
    Post count: 57

    Dear Melanie,

    I’ m sorry but I can’t follow your explainations.

    Since this thread goes on from 8th of August and has forced you to reply to it already numerous times, I kindly ask you to give us and future readers interested in the same topic a simple, clear and detailed explaination on how to put the “characteristics/functionality” of the predictive search in the same location and with the same style of the current search widget.

    Thanks for your collaboration

    Fabio

Viewing 15 posts - 1 through 15 (of 25 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register