support for background-image
-
Hi
My theme (Divi) slider presents images with css style background-image:url(…)
so when I press on the gray button nothing happened. I added few jQuery lines to your code under:jQuery(".greyscale").click(function(){ jQuery("img").each(function(){ jQuery(this).toggleClass("active_greyscale"); });
this are the lines I ask you to add:
jQuery('*').filter(function() { if (this.currentStyle) return this.currentStyle['backgroundImage'] !== 'none'; else if (window.getComputedStyle) return document.defaultView.getComputedStyle(this,null) .getPropertyValue('background-image') !== 'none'; }).toggleClass('active_greyscale');
Thanks
Yalon
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘support for background-image’ is closed to new replies.