Fix for 404 undefined when clicking around the item title
-
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.
- The topic ‘Fix for 404 undefined when clicking around the item title’ is closed to new replies.