From d469c3bf81274c2db5ba5a5158cdbd452fff576c Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Fri, 18 Aug 2017 20:15:17 -0400 Subject: [PATCH] *Add missing avada_revslider function override --- rocket-async-css.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/rocket-async-css.php b/rocket-async-css.php index aa8ba2a..faf0b8b 100644 --- a/rocket-async-css.php +++ b/rocket-async-css.php @@ -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; \ No newline at end of file