Viewing 3 posts - 1 through 3 (of 3 total)
-
AuthorPosts
-
July 2, 2021 at 5:23 pm #1308531
Hi kriesi, the opening and closing casings for Sensei are missing. I have a site with the latest Enfold + Child installed. The styles are not by Enfold. Some advice?
I have tried following these links but have not solved:
https://kriesi.at/support/topic/is-enfold-compatible-with-sensei/
https://senseilms.com/documentation/enabling-theme-support/July 2, 2021 at 5:43 pm #1308533I found this code:
global $woothemes_sensei; global $avia_config; remove_action( 'sensei_before_main_content', array( $woothemes_sensei->frontend, 'sensei_output_content_wrapper' ), 10 ); remove_action( 'sensei_after_main_content', array( $woothemes_sensei->frontend, 'sensei_output_content_wrapper_end' ), 10 ); add_action('sensei_before_main_content', 'my_theme_wrapper_start', 10); add_action('sensei_after_main_content', 'my_theme_wrapper_end', 10); function my_theme_wrapper_start() { if( get_post_meta(get_the_ID(), 'header', true) != 'no') echo avia_title(); do_action( 'ava_after_main_title' ); ?> <div class='container_wrap container_wrap_first main_color <?php avia_layout_class( 'main' ); ?>'> <div class='container'> <main class='template-page content <?php avia_layout_class( 'content' ); ?> units' <?php avia_markup_helper(array('context' => 'content','post_type'=>'page'));?>> <?php } function my_theme_wrapper_end() { ?> </main> <?php //get the sidebar $avia_config['currently_viewing'] = 'page'; get_sidebar(); ?> </div><!--end container--> </div><!-- close default .container_wrap element --> <?php } add_action( 'after_setup_theme', 'declare_sensei_support' ); function declare_sensei_support() { add_theme_support( 'sensei' ); }
Seems to work, what do you think?
ThanksJuly 4, 2021 at 4:54 am #1308620 -
AuthorPosts
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.