Quantcast
Channel: WordPress.org Forums » [WooCommerce] Support
Viewing all articles
Browse latest Browse all 104029

WebsiteDoctor on "[Plugin: WooCommerce - excelling eCommerce] Adding theme support to functions.php"

$
0
0

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/


Viewing all articles
Browse latest Browse all 104029

Trending Articles