My Courses > CustomizeWoo > Module 2 > Lesson 09: Create a Child Theme

Create a Child Theme

MARK LESSON AS COMPLETE

WooCommerce customization starts with a child theme. And here are two videos, including a demo, to show you how to create one in 5 minutes.

Video

Please note: English captions are enabled by default (click on “CC” in the video player to disable). Also, you can click on the “gear” icon to manage quality and playback speed. Enjoy!

Sorry, this video is visible to logged in and fully registered students only.
If you already enrolled in this course, please LOG IN
Otherwise, please enroll in the FREE / PRO COURSE
For any other queries, feel free to get in touch
Sorry, this video is visible to logged in and fully registered students only.
If you already enrolled in this course, please LOG IN
Otherwise, please enroll in the FREE / PRO COURSE
For any other queries, feel free to get in touch

Useful Links

WordPress Child Theme: https://developer.wordpress.org/themes/advanced-topics/child-themes/

7 thoughts on “Create a Child Theme

  1. Hi Rodolfo
    I am having trouble creating a child theme for Essence Pro, which is a Studio Press theme built on the Genesis framework. When creating a child theme as you instructed, the template is Genesis so the child theme doesn’t capture anything but the Genesis theme.

    Studio Press offers instruction but when I follow their instruction, the theme won’t name to a child…Here is their child instruction url https://www.sitepoint.com/creating-your-own-genesis-child-themes

    Any help is greatly appreciate. I am so encouraged by your instruction that I can’t wait to get started with woo customization…
    Thank you

    1. Hello Louise! Is it possible that Essence Pro is already a child theme of Genesis (open its style.css and look for the Template line in the header, if it’s there it means it’s a child theme) – so you actually need to build a grandchild theme?

      1. Hi Rodolfo – so Studio Press does not recommend creating grandchild themes. What can be done instead of using one of the child themes of Genesis Framework offered by Studio Press is to use Genesis Block Theme, which is a parent theme and does not require the Genesis Framework, but it is built on Genesis Framework.
        Once I installed the Genesis Block Theme, it was easy to create a child theme as you have instructed. The add_action enqueque code is required in the child functions.php file.

          1. Hi Rodolfo – One question, which may be outside of this lesson plan, but it is hanging me up a bit… After creating a child theme with the style and functions file, what about the details in the header.php? Especially about google analytics site snippets for tracking. My existing theme (that I am working on changing out) that was built by a developer has a header and footer php file in the child theme folder. What is your recommendation for that aspect of the child theme? Thank you

            1. You can inject tracking code via hooks, in your child theme’s functions.php, as opposed to overriding the whole header.php file. Example: https://gist.github.com/luclemo/0a1152c752be012612ca0135f7c4e16a

              1. Perfect!

Questions? Feedback? Support? Leave your comment now!
_____

If you are writing code, please wrap it between: [php]code_here[/php]

Your email address will not be published. Required fields are marked *