Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: Is Enfold compatible with Sensei? #644222

    Here is the documentation on how to specify your own start and end wrappers in you functions.php file.

    https://docs.woothemes.com/document/sensei-and-theme-compatibility/

    I am using the enfold child theme and have pasted all the code below as the directions specify.

    add_filter( ‘sensei_load_default_supported_theme_wrappers’, ‘__return_false’ );
    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() {
    echo ‘<div id=”container”><div id=”content” role=”main”>’;
    }

    function my_theme_wrapper_end() {
    echo ‘</div><!– #content –>
    </div><!– #container –>’;
    get_sidebar();
    }

    Instead of the functions my_theme_wrapper_start and my_theme_wrapper_end, what are the actual functions I should place here in this child functions.php?

Viewing 1 post (of 1 total)