Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #707241

    Hi, I submitted a help question yesterday which as yet has not been answered but I have now uploaded the site to a live server (details below). I’m really struggling trying to get Sensei working on a site I’ve built in Enfold. If I can’t get Sensei working here I’m going to have to start from scratch with another template but as it is I’m really out of time. Sensei works when I switch to the stock 2016 and 2015 templates.

    I have looked at this ticket https://kriesi.at/support/topic/is-enfold-compatible-with-sensei/ and unfortunately don’t understand what files to modify and where to add the updated code. This does seem rather simple if you know what you’re doing but I’m afraid I don’t!

    I would be so grateful if you could help.

    Thanks,
    J

    #707278

    Hey!

    Can you please download this folder – https://www.dropbox.com/s/uo1sf59np8lboy8/sensei.zip?dl=0 and place it inside wp-content/themes/enfold folder.
    It is bundled version of Peter’s code – https://kriesi.at/support/topic/woothemes-sensei-plugin/#post-111078 and Adrian’s code – https://kriesi.at/support/topic/is-enfold-compatible-with-sensei/#post-635076

    Regards,
    Yigit

    #707308

    Thanks Yigit for getting back to me so quickly. I added the code and I’m afraid it doesn’t work. I can’t see any of the Sensei lesson content but when I switch back to TwentySixteen it’s all there.

    I’ve passed the page address below so you can see for yourself.

    Thanks again for your help.
    John

    #707390

    Hi,

    I removed “sensei” folder from Enfold folde and added following code to Functions.php file of your child theme

    
    
    global $woothemes_sensei;
    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() {
    
    global $avia_config;
    
    	/*
    	 * get_header is a basic wordpress function, used to retrieve the header.php file in your theme directory.
    	 */
    	 get_header();
    
     	 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 style='padding-right:40px' 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() {
    ?> <!--end content-->
    				</main>
    
    				<?php
    
    				//get the sidebar
    				$avia_config['currently_viewing'] = 'page';
    				get_sidebar();
    
    				//?>
    
                </div><!--end container-->
    
    		</div><!-- close default .container_wrap element -->';
    
    <?php get_footer(); ?>
    <?php
    }
    

    Please review your website now

    Best regards,
    Yigit

    #707392

    Wow!!! Thanks Yigit that seems to be working great now. Thank you so much, it’s really appreciated.

    Enfold really is the business. Amazing support!!

    #707395

    Hi!

    You are welcome!
    For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
    And if there are features that you wish Enfold had, you can request them and vote the requested ones here – https://kriesi.at/support/enfold-feature-requests/
    For any other questions or issues, feel free to post them here on the forum and we will gladly try to help you :)

    Regards,
    Yigit

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Enfold not working with the Sensei plugin’ is closed to new replies.