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?
- get_template_part vs action hooks in themes
- How to Link External jQuery/Javascript files with WordPress
- Change admin bar to default:off
- How to change admin bar color scheme in MP6 / WP 3.8 front end?
- When to use esc_url, esc_html, esc_attr, and friends?
- Pushing updates to your premium theme
- Where can I find a good reviewed collection of Twenty Ten child themes?
- Change loop order via form or link (jquery, not URL)
- CSS in child theme not overriding the parent theme [closed]
- How to add dynamic inline style?
- Optimal solution to develop a wordpress theme?
- Do I really need the div class entry?
- Am I supposed to create a child theme for every theme I use?
- using wordpress without javascript
- Theme Check: Could not find post_class
- Best way to start becoming a wordpress developer
- Why wp_head() function not loading style.css?
- Override theme programmatically
- create-guten-block in wordpress theme?
- Customizer: Unique identifier that distinguishes which image upload control is uploading an image
- Theme Splash Image within the “Appearance -> Themes” control panel [duplicate]
- Theme Loading Into Dashboard
- How to add custom page attributes in WordPress?
- JavaScript stops working on selectively refreshed sections one inside the other
- Custom Blocks as part of a theme
- Overrite parent functions using child functions
- How to have content scroll over background
- How can I change the theme of different posts using a plugin?
- Is there a WordPress boolean for “theme_customizer_active()”?
- Why still output /wp-content/themes/twentynineteen?
- add shortcode support in customizer
- get_header action not working
- Unable to change the priority with ‘remove_action’ and ‘add_action’ in child theme
- Remove h1 from 2015 theme
- WordPress pulling in random page themes
- Some doubts about WordPress handle the horizontal main menu visualization
- Update Specific Key Value in Complex `wp_options` object
- How do I restructure the comment HTML layout?
- Theme: dropdown hover menu not showing up in IE/Edge
- Problem with pagination link (error 404)
- how to ensure responsiveness in wp themes? [closed]
- home is not working in wordpreess
- Local theme changes upload on server but theme changes not showing
- New created Theme leads to malfunctioning Xampp Apache –> functions.php is cause
- Managing Custom Designed Content
- Woocommerce Theme Reviews / Comments
- Safe way to echo wp_trim_words
- How can I demonstrate themes well?
- Support Multiple featured images
- trying to figure out how to use more that one image upload in the same section in theme customizer
- WordPress custom jquery not found
- Custom link color or stylesheets
- How to remove proudly created by WordPress in theme?
- Roll my own theme or customize an existing one [closed]
- Why do some sites show themes/”themename” as the only theme?
- My wordpress site memory exhausted more than 1GB trying to debug with default