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.
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?
Hi Andrew,
I added a search widget to my footer, and it works great. It is the menu search that doesn’t work.
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.
It looks like the child theme did not fix the problem, but thank you for your help!
Can you perhaps open a thread on their support page. We’re using the standard search form code as follows:
Hopefully the plugin author has a workaround we can apply there.
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.
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.