Đã hoàn thành

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!

Kĩ năng: WordPress, PHP

Xem nhiều hơn: 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

Về Bên Thuê:
( 5 nhận xét ) Launceston, United Kingdom

ID dự án: #20431072

Được trao cho:

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. Thêm

£20 GBP trong 1 ngày
(103 Đánh Giá)
6.0

13 freelancer đang chào giá trung bình £17 cho công việc này

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 Thêm

£20 GBP trong 5 ngày
(86 Nhận xét)
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 Thêm

£15 GBP trong 7 ngày
(52 Nhận xét)
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, Thêm

£11 GBP trong 1 ngày
(55 Nhận xét)
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 Thêm

£25 GBP trong 1 ngày
(27 Nhận xét)
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 Thêm

£20 GBP trong 7 ngày
(9 Nhận xét)
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 Thêm

£15 GBP trong 1 ngày
(11 Nhận xét)
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 Thêm

£15 GBP trong 7 ngày
(4 Nhận xét)
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 Thêm

£15 GBP trong 7 ngày
(1 Nhận xét)
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 Thêm

£20 GBP trong 7 ngày
(5 Nhận xét)
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 Thêm

£20 GBP trong 0 ngày
(1 Nhận xét)
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 Thêm

£15 GBP trong 3 ngày
(0 Nhận xét)
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 trong 5 ngày
(0 Nhận xét)
0.0