Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #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/

    #1308533

    I 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?
    Thanks

    #1308620

    Hi,

    Thanks for the update. I’m not sure I understand the problem you are having though, could you try explaining it a bit further please? We have not tested the theme with Sensei unfortunately, and we are not familiar with it.

    Best regards,
    Rikard

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.