[Support request] Changing Search slug and its parameter

Home Forums Support [Support request] Changing Search slug and its parameter

Home Forums Support Changing Search slug and its parameter

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1092943
    Gulshan

    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!

    #1093354
    Leo
    Staff
    Customer Support
    #1094911
    Gulshan

    Yes, exactly. Thank you very much. 😊

    #1095127
    Leo
    Staff
    Customer Support

    No problem πŸ™‚

    #1170228
    Gulshan

    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

    #1171044
    Tom
    Lead Developer
    Lead Developer
    #1171657
    Gulshan

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

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

    Query string “q” after /search/ is important for me.

    #1172046
    Tom
    Lead Developer
    Lead Developer

    Hmm, I’m afraid I can’t find a solution for this, unfortunately.

    You may find an answer if you ask this over on https://wordpress.stackexchange.com/.

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.