Home>Support>Search Doesn’t Work

Search Doesn’t Work

By acorbett, 9 years ago. Last reply by Andrew Misplon, 9 years ago.

When Polylang is active with the Vantage theme, my site’s search doesn’t work (entering a search term and pressing enter takes you to the home page). I’ve tried Polylang with TwentyFourteen, and the search works; likewise, the search works with Vantage if Polylang is disabled.

I’ve also updated everything to the most recent version, but it doesn’t seem to have any affect.

URL: http://wptest.hitech.com/home/

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 9 years, 11 months ago Andrew Misplon
    Hi, I Work Here

    Hi acorbett

    Can you perhaps try a search widget in the header/sidebar or footer widget areas and see if the result is different with that widget? I’m assuming you’ve been testing with the menu search?

  2. 9 years, 11 months ago acorbett

    Hi Andrew,

    I added a search widget to my footer, and it works great. It is the menu search that doesn’t work.

  3. 9 years, 11 months ago Andrew Misplon
    Hi, I Work Here

    Thanks. Ok so one option would be to turn menu search OFF in theme settings and go with a search widget in the header, footer or sidebar.

    Alternatively try this child theme: https://siteorigin.com/wp-content/uploads/2014/10/vantage-child-poly-search-attempt.zip.

    Install from Appearance > Themes > Add New: Upload Theme. If it works you’ll unfortunately need to redo Customizer and Menu settings, so test it out first. Proper shot in the dark. Might need to take another look tomorrow.

  4. 9 years, 11 months ago acorbett

    It looks like the child theme did not fix the problem, but thank you for your help!

  5. 9 years, 11 months ago Andrew Misplon
    Hi, I Work Here

    Can you perhaps open a thread on their support page. We’re using the standard search form code as follows:

    <div id="search-icon">
    	<div id="search-icon-icon"><div class="vantage-icon-search"></div></div>
    	<form method="get" class="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>" role="search">
    		<input type="text" class="field" value="<?php echo get_search_query(); ?>" name="s" id="s" />
    	</form>
    </div>
    

    Hopefully the plugin author has a workaround we can apply there.

  6. 9 years, 10 months ago acorbett

    Hi, the plugin support provided a work around, but they said it is a problem with the theme, and to convey this:

    “For plugins to be aware of a search form, any search form must be in searchform.php or pass the ‘get_search_form’ filter. This is not the case in parts/menu.php and in parts/masthead-logo-in-menu.php.”

    Not sure if this will help solve the problem, or if this is something you already tried. I am content with the work-around they provided, so there is no urgency to solve this problem.

  7. 9 years, 10 months ago Andrew Misplon
    Hi, I Work Here

    Thanks for the effort here. If the workaround is effective then we can leave it there for now. I’ll definitely pass this feedback on to ensure we keep this mind for the future.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More