Generated by wp-cli and commented by Mark Root-Wiley
Written quickly for an NTEN WordPress Online Community Forum post.
- Create a folder in /wp-content/themes/{your_theme_name}/
- Copy both
functions.php
andstyle.css
from this gist into that folder. - Replace all text in {braces} with appropriate values for your theme
- There are replacements in both files! The theme likely won't work if you don't make all replacements and remove all braces
- Review the Other Documentation below
- Selectively add and override files in the parent theme via your child theme.
- WordPress Theme Handbook "Child Themes" Page - Note: The way this child theme includes parent styles is better :)
- WordPress Template Hierarchy - This shows you the files you can override with or add to your child theme
This is really helpful! Could you describe how
functions.php
would call multiple CSS style sheets? My theme hasstyles.css
andstyles-custom.css
.