- This topic has 10 replies, 2 voices, and was last updated 6 years, 10 months ago by Andrew Misplon.
Tagged: Search results
- AuthorPosts
- February 5, 2018 at 11:50 am #8705
Eelco DekemaParticipantHi,
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
Andrew MisplonKeymasterHi Eelco
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
Eelco DekemaParticipantHi,
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
Andrew MisplonKeymasterSuper, that’s progress. Have you modified Polestar?
Please, send a link so we can take a look.
February 5, 2018 at 12:09 pm #8709
Eelco DekemaParticipantThis reply has been marked as private.February 5, 2018 at 12:15 pm #8710
Andrew MisplonKeymasterAssuming 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
Eelco DekemaParticipantAlready did, but still no search results!
The searchfunction stops working the moment I switch to polestar
February 5, 2018 at 12:25 pm #8712
Andrew MisplonKeymasterBy 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 #8713
Eelco DekemaParticipantI’ve found something…
I installed my wordpress in a subdirectory.. when I preform a search action it actually loads the page within the subdirectory (https://domain.com/subdir/?s=test). when I edit the URL to https://domain.com/?s=test it will show the results!
February 5, 2018 at 1:08 pm #8714
Eelco DekemaParticipantI’ve fixed it by editing searchform.php in the Polestar theme…
I changed
<form method=”get” class=”search-form” action=”<?php echo esc_url( site_url() ) ?>”>
to
<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
Andrew MisplonKeymasterNicely 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.
- AuthorPosts
You must be logged in to reply to this topic.