I'm running the Genesis Framework and need a way to redirect the primary search results URL (/?s=) and search boxes to a new/custom search page in order to get FacetWP and SearchWP working nicely together.
On the default search archive, SearchWP is taking over and overriding FacetWP's own result search and filter.
I need to be able to redirect results and searches from /?s= to /search/?_s=
Those settings should apply to both the search archive itself (if anyone manually attempts to visit it or manually enters a search) and the default WordPress search boxes/widgets across the site.
Usually, this would be simple, and FacetWP provide code for str/preg replaces to redirect search boxes:
add_filter( 'get_search_form', function( $form ) {
$form = str_replace( 'name="s"', 'name="_search"', $form );
$form = preg_replace( '/action=".*"/', 'action="/search/"', $form );
return $form;
} );
However, Genesis has its own filter (genesis_search_form) and own search box settings which are interfering with that working, and I can't find a way to disable Genesis's search box to get back to the WordPress default.
I also need to make sure that the search page slug (/search/) to be a globally set variable, as we'll need to do manual translations on the site's template in the near future and only want to have to change them in one place.
It should be fairly straightforward for someone well versed in PHP, but not being a coder/developer I can't QUITE make it work.
Hopefully, that makes sense, but if you need to know any more please ask!
Hi There,
I can fix it now.
I am PHP experts having combined experience of more Than 6 years in PHP Framework :- Prestashop,Magento, Wordpress, & BIgcommerce and already completed more than 100 projects successfully.
We offer the following services in Web Development:
Creating library function
Configuring website
Website migration from one server to other
MYSQL database issues
Bug fixing and Maintenance
Developing admin Management to control the website content
Banner and Slider Management (customization)
Custom User Management.
Custom Coding.
Payment gateway Integration.
API Integrations.
Custom Ecommerce Development.
Please give us an opportunity to show our expertise in the same. I would love to discuss the work with you. we can proceed ahead for a long term relationship with best outputs always.
Wordpress: 6 yrs
wordpress plugin and theme integration: 6 yrs
html: 6 yrs
css: 6 yrs
javascript:6 yrs
Bootstap: 6 yrs
mysql : 6 yrs
Please initiate chat so that we can discuss more and I can suggest you better.
Regards:-
Pankaj Rai
£20 GBP ndani ya siku 1
4.8 (150 hakiki)
6.3
6.3
8 wafanyakazi huru wana zabuni kwa wastani £18 GBP kwa kazi hii
I am specialize in website design and development and are excited for the opportunity to work with you in accomplishing your goals.
I am Good at PHP, WordPress.
Hi jonwatson87! Please Send me a message so that we can discuss more about this project