I need to set the search results page as the homepage of the site. What’s the most efficient way to achieve this?
Currently, I did a 301 redirection, but it’s too heavy, it takes forever to load the page (obviously).
The reason why I need to set it as the default page is, because the search plugin (Ajax Search Lite) only finds and replaces the search results list, if it’s on the search results page. Maybe I can trick the plugin into thinking the main page is the search results page somehow?
Thank you in advance for your help.
]]>I have some issues with the search function of my Woocommerce Online Shop.
I am working with Elementor and i am using the Woolentor: Product Filter-Widget as the search bar.
I used to just display the search results on the same page (shop main page) in the WooLentor Product Archive Layout-Widget.
Everything worked fine, but when i redirect the search results on a custom URL and implement the WooLentor Product Archive Layout-Widget on this page, it does not show any results.
My Webpage is on local server, so i can just show you pictures of my main shop page, as well as the search result page. Does anybody has an idea, what’s the issue?
Image Links:
https://ibb.co/j54qQRn
https://ibb.co/n10ktCt
If there are any more questions, please ask:)
Thanks for your help!
]]>Notice: Trying to get property of non-object in C:\WebServer\OSPanel\domains\sophia.local\www\wp-content\plugins\woocommerce\includes\class-wc-query.php on line 717
WordPress 5.1.1, Версия фильтра последняя – 3.2.2
]]>Anyone has an idea about why it acts like that ?
And what can i do to make it good ?
i tried things with search.php (which i can’t find, as such, in the customizr template contents), etc, but i don’t manage php…
my version is:
# SITE_URL: https://torpeurferveur.tf/cancot
# HOME_URL: https://torpeurferveur.tf/cancot
# IS MULTISITE : No
# THEME | VERSION : customizr | v4.1.25# WP VERSION : 5.0.3
# PERMALINK STRUCTURE : /%postname%/
# ACTIVE PLUGINS :
All-in-One WP Migration: 6.82
Gmedia Gallery: 1.14.4
Google Captcha (reCAPTCHA) by BestWebSoft: 1.39
Google Fonts for WordPress: 1.4.8
Grid Kit: 1.8.16
Nimble Page Builder: 1.4.2
Regenerate Thumbnails: 3.1.0
SecuPress Free — WordPress Security: 1.4.7
Testimonials Slider and Showcase: 1.2.4
WP SVG Icons: 3.2.1
Yoast SEO: 9.4
PHP Version: 7.2.13
MySQL Version: 5.5.5-10.1.37-MariaDB-1~jessie
Web Server Info: Apache/2.4.25 (Debian)
WordPress Memory Limit: 192MB
PHP Memory Limit: 192M
PHP Upload Max Size: 96M
PHP Post Max Size: 97M
PHP Upload Max Filesize: 96M
PHP Time Limit: 120
PHP Max Input Vars: 16384
PHP Arg Separator: &
PHP Allow URL File Open: No
WP_DEBUG: Disabled
Show On Front: page
Page On Front: (#0)
Page For Posts: (#0)
Thank you very much for your help !
]]>I use this plugin and it’s very good, but I realized that the PDF publication is display on the search page of the site. I would like to hide all of them because the pdf publication is empty (a page with no pdf, and no image).
How can I fix it ? Exclude the page of the search page?
Thank you in advance for your help.
PS: Too bad that the plugin is not suitable for mobile. I hope to see a new version
I am getting too much displayed when I configure it to search deeply. I am not sure how to control the results. Have done some of it through CSS but need to clean up where it is displaying code and styling tags with the divi modules.
Specifically the toggle module which has product information which I would like to display after the toggle title bt without the styling code. I am not seeing any highlighting happening either.
Site: https://vicarious-devops.com/
]]>I have create my searchpage and it’s work but since i try to give her a pagination system, i got some problem.
I don’t know why but the wordpress core try to call a new template for the searchpage.
https://URL/sites/JimmyS/site_1/?s=Activite
<= This work fine.
https://91.229.20.141/sites/JimmyS/site_1/?s=Activite&paged=2
<= This give me a ‘Not found’ page.
I use the same system of pagination for two other page using custom type loop and it work.
I find on the codex some part of this code and using him with my own :
<?php
$paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1;
global $query_string;
$query_args = explode("&", $query_string);
$search_query = array(
'posts_per_page' => '5',
'paged' => $paged
);
if( strlen($query_string) > 0 ) {
foreach($query_args as $key => $string) {
$query_split = explode("=", $string);
$search_query[$query_split[0]] = urldecode($query_split[1]);
}
}
$mQuery = new WP_Query($search_query);
if (function_exists("pagination"))
{
pagination($mQuery->max_num_pages);
}
?>
If someone already solve a similar problem, i should be happy to listen how to do (no need to get me the fixed code or what, will have juste to understand what is wrong).
Thanks
<div class="searchform">
<?php $search_text = "Search the website"; ?>
<form method="get" class="searchform" action="<?php bloginfo('home'); ?>/">
<input type="text" value="<?php echo $search_text; ?>" name="s" id="s"
onblur="if (this.value == '')
{this.value = '<?php echo $search_text; ?>';}"
onfocus="if (this.value == '<?php echo $search_text; ?>')
{this.value = '';}" />
<input type="submit" id="searchsubmit" value="Search" />
</form>
</div>
The $search_text string seems to only work with the onblur and onfocus when the text is longer than two words. I just want Search website. Is this possible?
]]>when I do a search it displays a mutiple post page tamplated by my index template. It always shows full post.
I want to show only an exerp or no content at all and have the titles show up as links. See https://www.shawnstark.com
my current search form looks like this
<label class="head_search"><?php _e('Search:'); ?></label>
<form class="head_search" method="get" action="<?php bloginfo('home'); ?>">
<input type="text" name="s" id="s" size="15" />
<input type="submit" value="<?php _e('Search'); ?>" />
</form>
I want to format the output to with an alternate template too index.php. I know I can set a template when creating a page. Is there a way I can force search results from anywhere to display in a specified page. Please Help I do not want to switch themes right now.
]]>