Site logo

Archived topic

Changing Search slug and its parameter

7 replies · Started by Gulshan on December 4, 2019

Viewing posts 1–8 of 8

Hello dear,

Can you please suggest me snippet for below changes

From https://example.com/?s=

To https://example.com/search?q=

Expected HTML output

<form method="get" class="search-form navigation-search nav-search-active" action="https://example.com/search/">
				<input type="search" class="search-field" value="" name="q" title="Search">
			</form>

Thanks in advanced!

Yes, exactly. Thank you very much. 😊

No problem :)

Hello Leo,

Above solution works perfectly for Navigational Search which relates to GP Theme.
I wonder if you could help me with default widget search box? I felt that was needed for my 404 page.

Thanks

Sorry, no. It return example.com/search/QUERY

I need example.com/search/?q=QUERY

Query string "q" after /search/ is important for me.

This archived topic is closed to new replies.