Tagged: Search results
February 5, 2018 at 11:50 am #8705
My polestar theme doesn’t give ANY search results, both regular WP posts and PageBuilder posts.
Help!February 5, 2018 at 11:55 am #8706
Thanks for posting.
That’s unlikely to be theme related. To confirm, briefly switch a default theme like Twenty Sixteen and try again. If the issue persists, you’ll know it isn’t theme related. Next, keep the default theme activated and disable all plugins in one go except for Page Builder. Test your search, does the issue persist. If the issue is resolved you’ll then know a plugin is the issue and can begin a plugin conflict test. This is how to start troubleshooting the problem.February 5, 2018 at 12:04 pm #8707
So I’ve tested with a default theme and voila, all results are shown…
Switching back to Polestart the results are back to zero.
The default theme had the same plugins activated as the Polestar theme.February 5, 2018 at 12:07 pm #8708
Super, that’s progress. Have you modified Polestar?
Please, send a link so we can take a look.February 5, 2018 at 12:09 pm #8709This reply has been marked as private.February 5, 2018 at 12:15 pm #8710
Assuming you’ve done all of your modifications from within a child theme please switch to the parent theme and test the search.February 5, 2018 at 12:19 pm #8711
Already did, but still no search results!
The searchfunction stops working the moment I switch to polestarFebruary 5, 2018 at 12:25 pm #8712
By default the theme’s search does work you can see this in the demo.
Have you modified the parent theme?
Please also try testing the parent theme with only SiteOrigin plugins activated.
With the parent activated, check the developer console for any JS errors.
Are you searching using the header search field or a search widget?
Please try answer all of the above points. I can take a look at your site when I get back to a computer.February 5, 2018 at 12:39 pm #8713February 5, 2018 at 1:08 pm #8714
I’ve fixed it by editing searchform.php in the Polestar theme…
<form method=”get” class=”search-form” action=”<?php echo esc_url( site_url() ) ?>”>
<form method=”get” class=”search-form” action=”<?php echo esc_url( ‘https://domain.com’ ) ?>”>
now it requests the root and not the subdirectory aka shows the results!February 5, 2018 at 1:39 pm #8715
Nicely done. Please be sure to have this change in your child to make it update safe and you’re good to go!
All the best.
You must be logged in to reply to this topic.