Once WordPress installed, the first thing I do is to create a child theme, which inherits styles from its parent theme (the theme I use as a base theme). As an example here, ABCParentTheme is the base theme. This way, I can keep the parent theme intact but make the look and layout in the way I like my website to be.
Steps to create a child theme:
1. Go to the Theme directory. Create a new folder and name it “childtheme” or any name you want.
2. In the “childtheme” folder, create a Stylesheet file named “style.css” and input information:
/*
Theme Name: childtheme
Theme URI: https://yourdomain.com
Description: Child theme for mynovember
Author: Your name
Author https://yourdomain.com
Template: abcparenttheme
Version: 1.0
*/
Important! One field you need to get right: Template. Our example is “ABCParentTheme” which is the name of the ABCParentTheme’s directory. If you’re using a different theme as a parent, you need to replace that value with the name of its folder (not the theme’s full name).
3. In the “childtheme” folder, create a new file named “function.php”
And input information:
add_action( 'wp_enqueue_scripts', 'enqueue_parent_styles' );
function enqueue_parent_styles() {
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
}
Now, the WordPress links and runs the styles in your childtheme on your website.
4. Go to your WordPress: Appearance > Themes and Activate your “childtheme”
5. Add an Image named “screenshot.png” to your childtheme if you want:
DONE!