Skip to content

Commit d469c3b

Browse files
committed
*Add missing avada_revslider function override
1 parent 458b78b commit d469c3b

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

rocket-async-css.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,3 +114,14 @@ function rocket_async_css_php_vendor_missing() {
114114
add_action( 'admin_notices', 'rocket_async_css_php_vendor_missing' );
115115
}
116116
}
117+
if ( ! function_exists( 'avada_revslider' ) ):
118+
function avada_revslider( $name ) {
119+
if ( function_exists( 'putRevSlider' ) ) {
120+
ob_start();
121+
putRevSlider( $name );
122+
$slider = ob_get_clean();
123+
echo str_replace( 'tpj(document).ready(function() {', 'tpj(window).load(function() {', $slider );
124+
125+
}
126+
}
127+
endif;

0 commit comments

Comments
 (0)