WooCommerce - excelling eCommerce
Adding theme support to functions.php (1 post)

  1. WebsiteDoctor
    Posted 2 years ago #

    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' );


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic