Resolved

No search results

Polestar Theme started by Eelco Dekema Feb 5, 2018 10 replies
Eelco Dekema Feb 5, 2018 · 11:50 am #8705

Hi,

My polestar theme doesn’t give ANY search results, both regular WP posts and PageBuilder posts.

Help!

Andrew Misplon Puro Feb 5, 2018 · 11:55 am #8706

Hi 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.

Resolving Plugin Conflicts

Eelco Dekema Feb 5, 2018 · 12:04 pm #8707

Hi,

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.

Andrew Misplon Puro Feb 5, 2018 · 12:07 pm #8708

Super, that’s progress. Have you modified Polestar?

Please, send a link so we can take a look.

Eelco Dekema Feb 5, 2018 · 12:09 pm #8709

This reply has been marked as private.

Andrew Misplon Puro Feb 5, 2018 · 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.

Eelco Dekema Feb 5, 2018 · 12:19 pm #8711

Already did, but still no search results!

The searchfunction stops working the moment I switch to polestar

Andrew Misplon Puro Feb 5, 2018 · 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.

Eelco Dekema Feb 5, 2018 · 1:08 pm #8714

I’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&#8217; ) ?>”>

now it requests the root and not the subdirectory aka shows the results!

Andrew Misplon Puro Feb 5, 2018 · 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.

11 posts