WordPress.org

Forums

The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Change admin bar search functionality (1 post)

  1. Josh Betz
    Member
    Posted 4 years ago #

    Instead of searching with the built in WordPress search, I want to make it use my google custom search that I have at /search-results/

    I think the best way to do this is to redirect all URLs that are going to ?s={STRING} to /search-results/?q={STRING} because that will redirect all searches using the built in search, not just searches from the admin bar.

    I had it working, except I was losing any spaces that were in the query.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.