Title: Adding theme support to functions.php
Last modified: August 21, 2016

---

# Adding theme support to functions.php

 *  [WebsiteDoctor](https://wordpress.org/support/users/websitedoctor/)
 * (@websitedoctor)
 * [13 years ago](https://wordpress.org/support/topic/adding-theme-support-to-functionsphp/)
 * 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/](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/](http://wordpress.org/extend/plugins/woocommerce/)

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

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [rockwell](https://wordpress.org/support/topic-tag/rockwell/)

 * 0 replies
 * 1 participant
 * Last reply from: [WebsiteDoctor](https://wordpress.org/support/users/websitedoctor/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/adding-theme-support-to-functionsphp/)
 * Status: not resolved