Generosity is a parent theme. If you want to change its styles or templates, create a child theme. Your changes live in the child theme, so updating Generosity never overwrites them.
Create the child theme
- In your
wp-content/themesfolder, create a new folder calledgenerosity-child. - Inside it, create a file called
style.css. - Add the following to the top of
style.css:
/*!
* Theme Name: Generosity Child
* Theme URI: https://link-to-your-site.com
* Description: Describe what your theme should be like.
* Version: 0.1
* Author: Your Name
* Author URI: https://link-to-your-site.com
* Template: generosity
*/
Template must be the parent theme’s folder name, generosity.
Activate it
Go to Appearance → Themes and activate Generosity Child. The parent theme’s styles load automatically, so your site looks exactly the same. Now add your own CSS below the header in style.css, and it will be applied on top of Generosity.
Keep Generosity installed
The child theme depends on Generosity, so leave Generosity installed, but not active, and keep it updated.