Reply To: Question About Using Custom Results URL

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Question About Using Custom Results URL Reply To: Question About Using Custom Results URL

#9306
Ernest Marcinko
Ernest Marcinko
Keymaster

Hi!

The reason why it’s not working is because the fancybox script you are using does not register on dynamically created elements such as search results. (only on elements which are already there when the page is loaded)

I’ve put together a small snippet for you to solve this issue. Put this script into the footer of your theme, before the closing body tag (most likely located in footer.php file in your current theme directory):

This script basically registers the fancybox when the user hovers over a search result. For this solution you don’t need to add the “fancybox-youtube” class, it should work without that.

Best,
Ernest Marcinko

If you like my products, don't forget to rate them on codecanyon :)