Slider Revolution WP
09.27.2016
If you’ve added a shortcode from another plugin into your slider, and this shortcode includes its own JavaScript, the following PHP snippet can be used to resolve printing conflicts.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
function revslider_print_raw( $filtered, $raw, $slider, $slide, $layer ) { // the class assigned to your layer in #2 here: // https://www.themepunch.com/revslider-doc/layer-settings/#layerattributes $layer_class = 'my-special-layer'; // no need to edit this line return strpos( $layer['attrClasses'], $layer_class ) === false ? $filtered : $raw; } add_filter( 'revslider_layer_content', 'revslider_print_raw', 10, 5 ); |