New Landing How can we help? Themeforest Theme Support Neighborhood Header #4 Lacking Search Kc

Viewing 12 posts - 1 through 12 (of 12 total)
  • #30475
    oytamuah
    Member
    Post count: 81

    Hi I’m using header style #4 in the theme options and unfortunately this one has no search field at all in the header. How can I have the search icon show up next to the add to cart/wishlist icons in the header like the other headers. Alternatively if this is difficult, could you guide me to where in the theme I can input my own

    #30865
    laranz – SUPPORT
    Member
    Post count: 3186

    Hi,

    Sorry for a late response. Apologies.

    Login to your FTP, and navigate here: \wp-content\themes\neighborhood\includes\swift-framework\sf-content-display\sf-header.php starting from line #280 you see header codes, you can make adjust to the header-4 and style it accordingly.

    Let me know, what you got.

    Thanks,
    laranz.

    #30912
    oytamuah
    Member
    Post count: 81

    I fixed this by adding the following code in the header-4 area just before the cart:

    $header_output .= '<li class="menu-search parent"><a href="#"><i class="icon-search"></i></a>'. "\n";
    			$header_output .= '<ul class="sub-menu">'. "\n";
    			$header_output .= '<li><form method="get" class="search-form" action="'.home_url().'/"><input type="text" placeholder="'.__("Search", "swiftframework").'" name="s" /><input type="hidden" value="product" name="post_type"></form></li>'. "\n";
    			$header_output .= '</ul>'. "\n";
    			$header_output .= '</li>'. "\n";

    I think this should be added in the next theme update automatically – no reason why header 4 shouldn’t have search field, in fact in mobile responsive mode the search bar does show up out of nowhere.

    #31245
    laranz – SUPPORT
    Member
    Post count: 3186

    Hi,

    Glad you fixed it ๐Ÿ™‚ I forward this thread to the developer, he may add this in the next update ๐Ÿ™‚

    Thanks,
    laranz.

    #31349
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Can you provide a link to your site so that I can check how it looks on the front?

    – Ed

    #37069
    pl
    Member
    Post count: 13

    replace icon-search with fa-search and it works fine ๐Ÿ™‚

    #37070
    pl
    Member
    Post count: 13

    how can i integrate this now in my child-theme?

    #37146
    laranz – SUPPORT
    Member
    Post count: 3186

    Hi pl,

    You can change the same file in the child theme, with the same folder structure to do so.

    Let me know, what you got.

    Thanks,
    laranz.

    #45358
    oytamuah
    Member
    Post count: 81

    Hey the latest update still hasn’t added search option for header #4 but the code I mentioned above still works. The only thing is I noticed that there is now ajax search – what changes do I need to make so I can also take advantage of this ajax search function.

    #45427
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Hi there,

    Adding search to headers 4 + 5 in version 1.6, hoping to get it out early next week. The code is:

    $header_output .= '<li class="menu-search no-hover"><a href="#"><i class="fa-search"></i></a>'. "\n";
    $header_output .= '<ul class="sub-menu">'. "\n";
    $header_output .= '<li><div class="ajax-search-wrap"><div class="ajax-loading"></div><form method="get" class="ajax-search-form" action="'.home_url().'/"><input type="text" placeholder="'.__("Search", "swiftframework").'" name="s" autocomplete="off" /></form><div class="ajax-search-results"></div></div></li>'. "\n";			
    $header_output .= '</ul>'. "\n";
    $header_output .= '</li>'. "\n";
    

    – Ed

    #45544
    oytamuah
    Member
    Post count: 81

    Thats great, thank you!

    #46359
    Melanie – SUPPORT
    Member
    Post count: 11032

    Thanks Ed!

Viewing 12 posts - 1 through 12 (of 12 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