This repository provides a starter child theme created mainly for WebMan Design WordPress themes. Child themes provide ways to modify your (parent) theme without losing your modifications when the (parent) theme is updated.
Alternatively (maybe even preferably), you can use a Child Theme Plugin instead, which provides you with more flexibility, is easier to use, and you don't need to switch themes.
Both of these solutions also work with block themes (FSE, full site editing themes).
User only one of the solutions, not both!
You can download the installable child theme ZIP package (the child-theme.zip
file) directly from this repository.
Read the instructions below for proper setup before installing!
- Unzip the
child-theme.zip
file on your computer. - Rename the
child-theme
folder to your needs.
Example: rename the folder tomy-website-theme
- Open the
style.css
file and change the following:Theme Name: Child Theme
- changeChild Theme
to your desired child theme name.
Example: set this toTheme Name: My Website Theme
Template: theme-slug
- changetheme-slug
to the desired parent theme folder name.
Example: if you are using Michelle WordPress theme as parent, set this toTemplate: michelle
- Optional: You can modify your child theme screenshot image too, a sample source SVG is also provided.
- Add any custom CSS styles into
style.css
file and/or any custom PHP code intofunctions.php
file. - Now upload your modified child theme via FTP to
YOUR_WORDPRESS_FOLDER/wp-content/themes/
folder. (Or ZIP your child theme and upload it via WordPress dashboard.) - In your WordPress dashboard navigate to Appearance → Themes and activate your child theme.
With child themes you can override whole parent theme files. Just copy them into your child theme (keeping the sub-folders structure) and edit the files there.
However, in most cases this is not required and there is a better approach with WebMan Design WordPress themes. They provide a lot of action and filter hooks so you don't have to override any file as whole. Simply use the hook to modify a specific section or behavior.
Overriding whole files makes it difficult to maintain your child theme as you will need to keep up with the parent theme file updates too.
For tips on the best approach for your advanced modifications ask at WebMan Design support forum.
- WordPress info about child themes
- Child Theme Check plugin (and how does it work?)
- Child themes in era of full site editing
You can download the installable child theme plugin ZIP package (the child-theme-plugin.zip
file) directly from this repository.
Read the instructions below for proper setup before installing!
- Install the
child-theme-plugin.zip
file via your WordPress dashboard (Plugins → Add New → Upload Plugin → Choose File → Install Now). - Activate the plugin.
- Now you can use the plugin's
functions.php
file to add your custom PHP code, and plugin'sstyle.css
file to add your custom CSS code. (You can do this on your server using FTP, for example. The plugin files are located inYOUR_WORDPRESS_FOLDER/wp-content/plugins/child-theme-plugin
folder.)
WebMan Design WordPress themes provide a lot of action and filter hooks you can use to override any theme functionality. Ask at WebMan Design support forum for tips on what hooks you need to target, if needed.