I would add it from the start so you don’t have to go back to it, and it’s a really simple process of creating a woocommerce.php file in your theme and then add the following to your functions.php
add_action( 'after_setup_theme', 'woocommerce_support' );
function woocommerce_support() {
add_theme_support( 'woocommerce' );
}
To create the woocommerce.php, copy your page.php, remove the loop code and replace with:
<?php woocommerce_content(); ?>
More info at https://docs.woothemes.com/document/third-party-custom-theme-compatibility/
Related Posts:
- Using classes instead of global functions in functions.php
- Template for individual post designs
- Where do I find the functions triggered within a hook?
- Front End Post Submit Form
- Upgrading a custom theme through the Dashboard
- Theme Customizer not loading
- Version control for both Vagrant config and themes being developed [closed]
- How to correctly add JQuery in a WP theme?
- How to add a second stylesheet to the editor
- WP 3.1 upgrade breaks AutoFocus+ theme
- How to make theme elements customizable in wordpress?
- Limitations when modifying wp_title with a filter
- How to edit theme functions file to modify pagination?
- Storefront child theme not applying parent theme [closed]
- StoreFront product pages: Turn the Short Description section into a kindred tab section [closed]
- Zoom on custom theme without child
- Customizer: save setting/control content to post/page
- Customize how a WordPress theme looks like in the Theme Selector
- Customizer – loading settings/controls/sections/panels based on a id/page id
- Widget Option is Missing
- How do you use WordPress for a website that’s not in a blog format?
- searchform.php doesn’t work properly
- Issue when posting updates/changes to wordress
- Customizer: get_preview_url() inside customize_save_after hook
- Woocommerce Product attribute not imported with wordpress Importer [closed]
- New to WordPress – Read the Codex, Other Docs; Still Confused
- Create theme for mobile phones and tablets only?
- How to add custom page elements to the WYSIWYG editor?
- Can’t change theme name
- how to add a badge on product based on filter?
- Is it possible to echo a woocommerce prouct attribute discription?
- Is hand coding required at all?
- how to edit woocommerce checkout page
- WooCommerce – edit templates
- WordPress Twenty-Fourteen: How to Remove Home Page Header Image from Other Pages
- How to dowload and edit content of a website
- Any way to permanently translate themes?
- How to prevent XSS attack in wordpress theme?
- Best strategy for providing theme options using customizer
- How Does One Create a Global Variable Repository
- How to convert that page to a wordpress template? [closed]
- php file child theme directory not overriding parent theme php file [duplicate]
- Turning WordPress Into full-featured website?
- How can i move my product name & price from below thumbnail to be the rollover content in Avada & Woocommerce?
- Why is it needed to enqueue parent stylesheet in child theme?
- How can I fetch the WordPress cart errors normally displayed in woocommerce-error?
- Folder name for a pro version of a WordPress.org theme?
- page.php dependent sites are not working in custom woocommerce theme
- “Add A Widget” button in the Customizer
- Prefix best practice, should we use framework name or theme name?
- Is there any WordPress theme for Self Storagae just like Spacer [closed]
- Theme Javascript.php Overwritten Nightly [closed]
- Q: How to pull data from custom table to populate zustomizer setting/control select options
- Scroll to position on page for category pages only — woocommerce
- Move default page templates to sub directory
- WordPress Unite Theme: Footer isn’t sticking [closed]
- WordPress get_template_part() function not working
- Is accessing theme and using customizer GPL distribution?
- Changing a slider to a grid [closed]
- loading blank white screen of slide
- Where am I doing wrong in my theme menu?
- How to add Space between sidebar and footer widget in WordPress theme [closed]
- Custom Navigation build using wp_nav_menu and walker
- Child Theme’s style.css not loading in mobile browser
- Compare the old get_theme_mod($name) to the new get_theme_mod($name) return value
- How can my theme allow users to take advantage of advanced html tags in posts
- Theme Inspector “X-Ray”
- Using My Own Classes On Wp Unit Tests
- Migrated WordPress site renders Chinese
- Acivate all themes multisite wide automatically
- Echo all category names, apart from one
- How to enqueue javascript for WP Customize options sidebar?
- Is it possible to visually group items on the theme customizer?
- WordPress 500 Internal server error when activating custom theme [closed]
- Call to undefined function add_menu_page() on theme activation
- How to Find the Page the Front Page is Using?
- How to place HTML tags in content from the_content()?
- correct tags for validating input types
- WordPress Theme Creation [closed]
- Custom Blocks as part of a theme
- What is the meaning of WordPress’s recommended css classes and where are they applied?
- WooCommerce: multiple input field for multiple product variations
- Redirect to another page using contact form 7? [closed]
- How to set a page as homepage in stead of the newspages?
- Can’t remove DIV from hooks in Storefront child theme [closed]
- Renaming a theme so it aids SEO and the theme used is hidden
- Admin: sub menu doesnt display under apperance when activate my themes
- Automated Footer information
- how to get the post attachement image in full size?
- How do I get the trackback count of a post in wordpress without writing an SQL query?
- Overrite parent functions using child functions
- Default Text not showing from customizer
- Best way to develop a new theme on a live site, with new content? [closed]
- Child Theme header1.php file not overwriting parent theme’s header1.php file
- How do I make the most minimal vanilla theme possible with nothing but raw content?
- Can I Set Up Session in WordPress Custom Page
- Does code in function.php differ from theme to theme
- WordPress 3.8 Backend Admin Color Scheme add more scheme how to do?
- Is it acceptable for a WordPress theme to not accept widgets?
- WordPress Theme Validator?