[Plugin: Easy FancyBox] Modify img selectors
-
I’m trying to alter the jQuery selectors for images which the plugin uses, and the way I’ve figured out to do it is:
function easy_fancybox_mod() { global $easy_fancybox_array; $easy_fancybox_array['IMG']['options']['autoAttribute']['selector'] = "href*="; } add_action('wp_head','easy_fancybox_mod',998);
Is there a better/easier way to do this? Does the Easy Fancybox plugin provide a filter for this?
The reason for the change is that the W3 Total Cache plugin appends query strings to the image link href value, which prevents the existing jQuery selectors
$a[href$="jpg"]
from recognizing the links because the “jpg” is no longer at the end of the URL.
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘[Plugin: Easy FancyBox] Modify img selectors’ is closed to new replies.