Search bar missing input box
-
Hi
I just updated my blog to the newest polylang version and now my search bar doesn’t work anymore.
The input box no longer renders.
It does seem to be some conflict between my theme as it still works on one of my other blogs where I also use polylang but a different theme.
It worked fine with this theme before today’s update though and if I remove polylang, the search bar starts working again.
Both the search box in the hamburger menu and the the main navigation bar are not working.
Any ideas ?
EDIT: I found that my theme has no searchform.php.
-
This topic was modified 2 years, 6 months ago by
crinrict. Reason: additional info
The page I need help with: [log in to see the link]
-
This topic was modified 2 years, 6 months ago by
-
Hello,
It looks like trying to fix a conflict with a theme has raised another one :/.
With no searchform.php, it will be harder to find the relevant code in your theme. Could you contact your theme developer and ask him/her to share the search form code here?
-
This reply was modified 2 years, 6 months ago by
Chouby.
Going to open a ticket with them as well and see if I can get some info.
EDIT: My theme has a free version here: https://wp-royal.com/themes/item-ashe-free/ if that helps. I didn’t test if it occurs on the free version though
Same problem here, search form messed up because it is missing all the atributes except action.
You should use non-greedy regex in frontend-filters-search.php, ‘#action=”(.+?)”#’ instead of ‘#action=”(.+)”#’
Please consider merging my patch https://github.com/polylang/polylang/pull/780
@crinrict Thank you for the theme. This helps us to test.
@mariankadanka Thank you for the PR.@mariankadanka Thanks so much. Making this change worked perfectly and my search box is now back in business.
That was a life saver as the search function is very important for my blog.
-
This reply was modified 2 years, 6 months ago by
- The topic ‘Search bar missing input box’ is closed to new replies.