• Anyone reading this using woocommerce with Rockwell? I’m looking to add theme support as per http://docs.woothemes.com/document/third-party-custom-theme-compatibility/ – I think it should be something like this by not certain – feedback & suggestions appreciated.

    remove_action( ‘woocommerce_before_main_content’, ‘woocommerce_output_content_wrapper’, 10);
    remove_action( ‘woocommerce_after_main_content’, ‘woocommerce_output_content_wrapper_end’, 10);

    add_action(‘woocommerce_before_main_content’, ‘my_theme_wrapper_start’, 10);
    function my_theme_wrapper_start() {
    echo ‘<div id=”post_wrapper”>’;
    }

    add_action(‘woocommerce_after_main_content’, ‘my_theme_wrapper_end’, 10);
    function my_theme_wrapper_end() {
    echo ‘</div><!– END div#post_wrapper –>’;
    }
    add_theme_support( ‘woocommerce’ );

    http://wordpress.org/extend/plugins/woocommerce/

  • The topic ‘Adding theme support to functions.php’ is closed to new replies.