Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author dFactory

    (@dfactory)

    you have 2 filters:
    em_content_wrapper_start
    em_content_wrapper_end

    just use them and for e.g. set it to output nothing. like that:

    // remove content wrappers
    function em_remove_content_wrappers($output) {
    	return '';
    }
    add_filter('em_content_wrapper_start', 'em_remove_content_wrappers');
    add_filter('em_content_wrapper_end', 'em_remove_content_wrappers');
    Thread Starter Kellylise

    (@kellylise)

    That worked! Here’s the php I used:

    /******************************************
    *  EM Integration with Genesis Child Theme
    *******************************************/
    
    // remove content wrappers
    function em_remove_content_wrappers($output) {
    	return '';
    }
    add_filter('em_content_wrapper_start', 'em_remove_content_wrappers');
    add_filter('em_content_wrapper_end', 'em_remove_content_wrappers');
    
    /**
     * Add Genesis custom  EM content  wrappers
     */
    add_action('em_before_main_content', 'genesis_em_wrapper_start', 10);
    add_action('em_after_main_content', 'genesis_em_wrapper_end', 10);
    
    function genesis_em_wrapper_start() {
        echo '<div class="content-sidebar-wrap"><main class="content" role="main" itemprop="mainContentOfPage">';
    
    }
    
    function genesis_em_wrapper_end() {
            echo'</div> <!-- end main-->';
            get_sidebar();
            echo'</div> <!-- end .content-sidebar-wrap-->';
    }
    
    /***********************************************
    *  // END EM Integration with Genesis ChildTheme
    ************************************************/

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Replace EM Wrapper for Genesis Childthemes’ is closed to new replies.