Thursday 15 November 2018

Modern Theme Development with Storefront


Storefront is a robust and flexible free WordPress theme developed by the team behind WooCommerce. Out of the box, Storefront supports deep integration with WooCommerce, which makes it a perfect starting point for developers to launch their projects. Storefront’s codebase relies on WordPress hooks and filters to add, remove or change functionality which makes it a perfect candidate for customizations through a child theme. At WebDevStudios, we decided to create a child theme for a recent client project. Customizing Storefront directly would make it impossible to upgrade for new features and bug fixes. Any changes would be overwritten during the upgrade process. By creating a child theme, we have the ability to upgrade the parent theme (Storefront) for access to new features and bug fixes.
Throughout the article, when I refer to parent theme, it’s Storefront.
Folder Structure
A child theme is basically a blank WordPress theme—it becomes a child theme when you define the parent theme in the “Template” param in the header block of a child theme’s style.css file.
For example:
/*
Theme Name: Storefront Child Theme
Theme URI:
Template: storefront
Author:
Source: https://managewp.org/articles/18108/modern-theme-development-with-storefront



source https://williechiu40.wordpress.com/2018/11/15/modern-theme-development-with-storefront/

No comments:

Post a Comment