It is also important to ensure that the directory name has no spaces.
2. After you create a sub theme style sheet folder, you must create a style sheet for the sub theme. The style sheet must be set to inherit styles from the parent theme.
To do this, you must insert the following style sheet title and replace it with relevant details: It is worth mentioning that the customization performed here will override the parent theme style\/*
Subject name: store front desk
Subject URI: http:\/\/sitename.com\/storefront\/
Description: store front desk sub theme
Introduction to the author
Author URI: http:\/\/sitename.com
Template: storefront \/ * it is case sensitive**
Version: 1.0.0
License: GNU Public License V2 or later
License URI: http:\/\/www.gnu.org\/licenses\/gpl-2.0.html
Label: light, dark, full width, reactive layout, ready for accessibility
Text field: storefront child
*\/
\/*Theme customization starts here * * \/ but this tutorial won’t teach you how to use CSS. Because it cannot be involved in this article. To adjust CSS on a website, you must learn CSS or hire developers.
3. It is recommended to use \
You must queue it for loading and ensure that the sub stylesheet has priority. To make the work easier, we created the following code to set the \
You can do this using winlar-zip or win7. And style. CSS and functions. It is also important to make sure that PHP is located in the subtopics folder. In addition, it is important to record other plug-in settings before activating the subtheme. You can then upload it to WordPress by adding shapes > themes. Male WordPress should be installed like other themes. Once installed, navigate to shape > theme and click activate to activate it, as shown below. When activated, it looks the same as the original theme. Sub themes import styles from the parent theme. Then you need to be creative and customize the look of the stylesheet.
You can also change the template file in a theme by copying the template file you want to change (for example, header. PHP) from the parent to the sub theme folder. In addition, some changes need to be made to specify the functionality that WordPress uses to reference template files. That is, get_stylesheet_directory(); To reference a template, use a function instead of get_template_directory(). Conclusion at this time, you can create the woocommerce storefront sub topic. To maximize the use of styles, we recommend that you modify CSS and check out other guidelines for creating sub themes for more advice. Sub themes can be purchased from third-party providers, but need to rely on the creativity of others