Title: Search function not working &#8211; Javascript TypeError: &#8220;x&#8221; is not a function
Last modified: July 17, 2020

---

# Search function not working – Javascript TypeError: “x” is not a function

 *  Resolved [missmoffat](https://wordpress.org/support/users/missmoffat/)
 * (@missmoffat)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/search-function-not-working-javascript-typeerror-x-is-not-a-function/)
 * Hello
 * I have installed the Ivory Search plugin and it works on every page except the
   home page. When I click on the search icon, the link simply doesn’t work.
    If
   I deactivate the old slider plugin on this page, the search plugin does then 
   work, so I have been told this may be a conflict with loading an old JQuery library.
   Unfortunately I don’t know enough about JQuery or Javascript to know how to resolve
   this. I did look at the Firefox developer console and got a couple of errors 
   up saying ‘TypeError: $(…).on is not a function’. The site is using the latest
   version of WordPress but both the theme and the slider plugin are fairly old 
   now. Any suggestions of things I could try very appreciated.
    -  This topic was modified 5 years, 10 months ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).
      Reason: Moved to Fixing WordPress, this is not an Developing with WordPress
      topic
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fsearch-function-not-working-javascript-typeerror-x-is-not-a-function%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/search-function-not-working-javascript-typeerror-x-is-not-a-function/#post-13136640)
 * > The site is using the latest version of WordPress but both the theme and the
   > slider plugin are fairly old now.
 * To rule out a plugin/theme conflict, try:
    – deactivating ALL (yes all) plugins
   temporarily to see if this resolves the problem (plugin functions can interfere).
   If this works, re-activate them individually (one-by-one) to find the problematic
   plugin(s). – switching to the unedited default Theme (Twenty Twenty, etc.) for
   a moment using the WP dashboard to rule out any theme-specific issue (theme functions
   can interfere like plugins).
 *  Thread Starter [missmoffat](https://wordpress.org/support/users/missmoffat/)
 * (@missmoffat)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/search-function-not-working-javascript-typeerror-x-is-not-a-function/#post-13200296)
 * Many thanks for your advice [@t-p](https://wordpress.org/support/users/t-p/)
   
   I’ve concluded that the slider plugin is too old and this is causing the problem.
   Appreciate you taking the time to reply. All the best.
 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/search-function-not-working-javascript-typeerror-x-is-not-a-function/#post-13200670)
 * You are welcome 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Search function not working – Javascript TypeError: “x” is not a function’
is closed to new replies.

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [jquery](https://wordpress.org/support/topic-tag/jquery/)
 * [typeerror](https://wordpress.org/support/topic-tag/typeerror/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [t-p](https://wordpress.org/support/users/t-p/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/search-function-not-working-javascript-typeerror-x-is-not-a-function/#post-13200670)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
