Færdiggjort

Redirect Default WordPress Search to Search Page

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!

Evner: WordPress, PHP

Se mere: wordpress search page title, wordpress search results page, wordpress custom search query, wordpress redirect search page, how to create search in wordpress, wordpress search url, wordpress search results page plugin, wordpress search query, default start page javascript, javascript redirect without submitting page, page search current page, wordpress advanced search filter, upload php wordpress page, default start page, wordpress page shows category, set default start page, web page search bar, adding javascript popup window wordpress page, html upload form wordpress page, javascript code correctly redirect user web page

Om arbejdsgiveren:
( 5 bedømmelser ) Launceston, United Kingdom

Projekt ID: #20431072

Tildelt til:

tiwariraushan71

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

£20 GBP på 1 dag
(103 bedømmelser)
6.0

13 freelancere byder i gennemsnit £17 på dette job

baniksubir1

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 d Flere

£20 GBP in 5 dage
(86 bedømmelser)
6.4
leemilun

Hello sir. I have good skills and experiences as you requested on your project. You can see my results as follow. https://www.freelancer.com/u/leemilun?w=f [login to view URL] [login to view URL] https://penguin Flere

£15 GBP in 7 dage
(52 bedømmelser)
6.3
cherrystuart83

Hello Sir/Ma'am, We are the team of IT professionals, with experience of 6+ years in Web technologies/Mobile Application development , software development. We have successfully worked with PHP, Magento, Joomla, Java, Flere

£11 GBP på 1 dag
(55 bedømmelser)
5.1
SoloTec

Sir, I run a Software House. I can focus on your project according to your instructions. Come on to discuss if you like My Multi-Skills. Have a look @My Profile. I'm a professional Apps & web developer, SEO Exper, Vir Flere

£25 GBP på 1 dag
(27 bedømmelser)
4.5
kornienkoelvira

Dear, Sir. How are you? I have read explanation for your project in details. I have been building website for 8+ years. During that period, I have ever developed platform, online-store and e-commerce site. I'm mast Flere

£20 GBP in 7 dage
(9 bedømmelser)
4.0
shivangioffc

I have been through your requirement very well. I have done similar projects like yours. I have great experience in Mobile and Web Development. I'm quite confident that I can handle your project perfectly. My Core Ski Flere

£15 GBP på 1 dag
(11 bedømmelser)
3.3
sunearthmoon

Greetings! I'm a full-stack software developer specializing in modern Web. I have just read your description & project details and I am very interested in your job. I am always working with thought that your job is my Flere

£15 GBP in 7 dage
(4 bedømmelser)
3.4
ibtesamnaasan

Hello and welcome in our group we so happy for this chance to give us this opportunity to work with you in your project My name is Ibtisam the CEO of our group I read the description that related in your project and Flere

£15 GBP in 7 dage
(1 bedømmelse)
3.1
aqeeqabbas

Hello, How are you doing? We are a World Renowned Professional IT Company And We Have Understood About Your Work What You Exactly Want. We Just Saw Your Project Description Carefully. We Are very Interested In Your Pro Flere

£20 GBP in 7 dage
(5 bedømmelser)
1.5
andrewraktim7

I am a Php developer.I also expert in wordpress.I have been worked during 11 yrs in Jquery/Javascript and core php also.I have been worked on that field during 11 years of experience with that filed. I am able to fi Flere

£20 GBP in 0 dage
(1 bedømmelse)
1.0
nesssofttech

I've read the project description and can develop definitely. I'll provide you with the highly skilled & professional HTML/CSS, PHP/WordPress/CodeIgniter, JavaScript, MySQL, Web Development Services and complete the s Flere

£15 GBP in 3 dage
(0 bedømmelser)
0.0
tezzjb20

i will do it first bid on freelancer add function in your wordpress website and some codes. it will take some according your hosting server speed

£15 GBP in 5 dage
(0 bedømmelser)
0.0