WordPress.org

Ready to get started?Download WordPress

Forums

Change admin bar search functionality (1 post)

  1. Josh Betz
    Member
    Posted 2 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.