Skip to content

Commit

Permalink
*Add missing avada_revslider function override
Browse files Browse the repository at this point in the history
  • Loading branch information
pcfreak30 committed Aug 19, 2017
1 parent 458b78b commit d469c3b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions rocket-async-css.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,3 +114,14 @@ function rocket_async_css_php_vendor_missing() {
add_action( 'admin_notices', 'rocket_async_css_php_vendor_missing' );
}
}
if ( ! function_exists( 'avada_revslider' ) ):
function avada_revslider( $name ) {
if ( function_exists( 'putRevSlider' ) ) {
ob_start();
putRevSlider( $name );
$slider = ob_get_clean();
echo str_replace( 'tpj(document).ready(function() {', 'tpj(window).load(function() {', $slider );

}
}
endif;

0 comments on commit d469c3b

Please sign in to comment.