diff --git a/includes/core/class-access.php b/includes/core/class-access.php index d1ad50b4..161570f5 100644 --- a/includes/core/class-access.php +++ b/includes/core/class-access.php @@ -63,6 +63,10 @@ if ( ! class_exists( 'um\core\Access' ) ) { // turn on/off content replacement on the filter 'the_content' add_action( 'get_header', array( &$this, 'replace_post_content_on' ), 12 ); add_action( 'get_footer', array( &$this, 'replace_post_content_off' ), 8 ); + // turn on/off content replacement on the filter 'the_content' with the theme "Avada" + add_action( 'avada_before_body_content', array( &$this, 'replace_post_content_off' ), 8 ); + add_action( 'avada_before_main_container', array( &$this, 'replace_post_content_on' ), 12 ); + add_action( 'avada_after_main_content', array( &$this, 'replace_post_content_off' ), 8 ); //filter attachment add_filter( 'wp_get_attachment_url', array( &$this, 'filter_attachment' ), 99, 2 );