Support » Plugin: Dave's WordPress Live Search » Fix for 404 undefined when clicking around the item title

  • Resolved Dan-Claudiu G.

    (@dcgavril)


    For those trying to find a fix for the 404/undefined error while clicking in the search item box (not on the title), you need to edit the file:

    daves-wordpress-live-search.js from the folder js

    and at the line 182:

    window.location.href = jQuery(e.target).parent('li').find('a.daves-wordpress-live-search_title').attr('href');

    you need to remove .parent('li')

    that will change into this: window.location.href = jQuery(e.target).find('a.daves-wordpress-live-search_title').attr('href');

    After this, you will need to minify the JS file with a tool like https://jscompress.com/ and replace the file daves-wordpress-live-search.min.js from the folder js

    Thank you Dave @csixty4 for this very useful plugin.

Viewing 2 replies - 1 through 2 (of 2 total)
  • @csixty4 can you please also include this fix in the next update? it’s very important for users, otherwise visitors will believe that the search is not working correctly. Thanks.

    Plugin Author Dave Ross

    (@csixty4)

    Thanks. I’ll put out a new update tonight with this and some other fixes.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fix for 404 undefined when clicking around the item title’ is closed to new replies.