Author camilleyang
2017
5
157
Premium
Ambassador
Rank 157

In this tutorial I'm going to show you how to create a WordPress child theme.

Why would you want to create WordPress child themes?

That's a good question. WordPress child themes allow you to make changes to your active WordPress parent theme.

When that parent theme is updated, your changes are not overwritten because they are in the child theme.

to create child theme the first thing is to use file manager or FTP like filezilla to upload to file to your website host.

click the themes folder-create new folder name hitmag-child

Note:when you name for the child theme, must copy the theme name and add -child, like my theme is hitmag, and my child theme name is hitmag-child, and the template must the same name of your theme.

open the hitmag-child folder, create a style.css file.

copy the below code:

/*
Theme Name: hitmag child theme
Theme URI: https://mynicheaffiliatemarketing.com/
Description: Child theme for the hitmag
Author: Camille Yang
Author URI: https://mynicheaffiliatemarketing.com/
Template: hitmag
Version: 1.2.3
*/

create functions.php file

copy the cope from this link
https://developer.wordpress.org/themes/advanced-topics/child-themes/

.<?phpadd_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );function my_theme_enqueue_styles() {    wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); }
Join the Discussion
Write something…
Recent messages
Loes Premium
This must be the famous video😁you are way ahead of me with this training, you lost me halfway, but I know where to find you when I need this
Reply
camilleyang Premium Plus
Yes, I learn from others, but I think it is a little important to know about this.I always learn from WA and youtube, hope to get more success, but I had not write any post before I finish learning the basic lessions.
Reply
camilleyang Premium Plus
Thanks Loes, I am hardly to improve all of my website skill to get more success, but I am very admired of you know more about then me, I will have a lot to share such as pinterest traffic tips and twitter traffic tips and instagram,but still not make into video trading, because I couldn't upload video before submit this question, but now there is nothing problem can hlod me back.I will write a lot in the coming days.hope to get more inspiration from Loes, you are great success person that I want to learn of.
Reply
Loes Premium
Success 👍 l am looking forward to your other tips
Reply
Top