What Is The Difference Between a Child Theme and a Premium Divi Child Theme

What Is The Difference Between a Child Theme and a Premium Divi Child Theme
If you’re new to WordPress and/or Divi, you’ve more than likely come across the term child theme.

Often met with a sense of confusion and trepidation, child themes are regularly overlooked due to a general lack of understanding as to what purpose they fulfill and how they function.

Using a child theme when developing a website is deemed as best practice, so it is worth familiarizing yourself with the subject.

After reading this article, you should be able to grasp the concept of a child theme and its application with a bit more clarity, and too, use this knowledge in your web development practices.

In this blog post you’ll learn (click to jump to the section):

What Is A Child Theme?

“A child theme is a theme that inherits the functionality and styling of another theme, called the parent theme.” – WordPress Codex

Relating to WordPress in its entirety, not just Elegant Themes and the Divi theme, a child theme is a series of files comprised of code that is packaged together.

These files mimic and pull functionality from the files present in a parent theme.

A parent theme is basically any theme purchased via a marketplace, vendor or similar. In the case of Elegant Themes, both Divi and Extra would be deemed as parent themes.

These (parent) themes are essentially a series of dozens of files (typically scripted using the PHP language), each which interchange functionality between each other, and also work in unison with the main WordPress core files – as downloaded from the WordPress.org repository.
If you were to create and customize the look and feel of a website using only the parent theme, you’d eventually run into problems.

Parent themes are updated regularly by their respective marketplace or vendor developers. Whether it’s to keep up with innovations or simply to fix bugs, these updates ensure that the theme itself will run at its optimum, all of the time.

While theme updates aren’t bad, they can disrupt certain functional or stylistic changes that you may have made to your WordPress website using CSS or PHP customizations.
CSS (Cascading Style Sheets) is a markup language that is used to style out various HTML-based web elements. Often, CSS styling is added to the style.css file of the WordPress child theme. The theme’s stylesheet is found by navigating to Appearance > Editor and selecting the style.css file.

In the case of Divi websites, there is a Custom CSS feature at the very bottom of the Divi Theme Options console, as well as the Editor.

These CSS edits may require quite a bit of knowledge, and can often encounter a bit of testing and tweaking, and generally, can take hours to execute.

In the event that a parent theme has an update, a WordPress website that isn’t running a child theme, runs the risk of having each and every line of CSS code overwritten.

Boom! Just like that, all of your hard work will disappear instantaneously, and your one-of-a-kind, unique looking website will return to the default “factory settings” of the original theme.

To remedy this, the creators and contributors of WordPress developed the child theme functionality that would allow for developers to create CSS site edits safely.

A child theme consists of a style.css file and possibly a series of other code files that pull from the functionality of the parent theme (i.e. main theme purchased from a marketplace or vendor).

The child theme is a completely separate entity to the parent theme. It merely adopts the same functionality and allows the developer the capability to make custom changes and functions.

A child theme must include a particular series of files, most importantly the style.css file for CSS edits, and the functions.php file. This file must include a specific line of code (with the WordPress function enqueue_parent_style) in order for it to register (or enqueue) the parent file.

Once this is done, any additional files added to the child theme directory will override the files presented in the parent theme package.

WordPress works in such a way that it first looks to run the files present in the child theme and executes the code it finds. Then, if there are no child theme files present, WordPress will move on to the parent theme file package and search for the respective files and code.

It is in this manner that developers can add CSS to their website without the threat of parent theme updates overwriting their code work.

Any code entered into the style.css file in the child theme will be read and run by WordPress, leaving the style.css file in the parent theme to update independently.

In summary, if you’re going to be making changes to your website using either PHP or CSS, or, if you’d just like peace of mind, use a child theme when developing your WordPress website.

What is the Difference Between a Child Theme and a Premium Child Theme

Child themes come in two forms: a standard (or blank) child theme and a premium child theme.

In a nutshell, a standard child theme (often referred to as a blank child theme) gives you the nuts and bolts for operation, while a premium child theme will include bells and whistles too.

Your selection between whether you should use a standard or premium child theme will essentially come down to your website’s needs requirements, but, more on that later.

First, let’s define the difference between a Divi child theme and a premium Divi child theme.

Divi Child Themes

A standard or blank Divi child theme is comprised of a series of core files that will enqueue the functionality of the parent theme in order to protect any site changes you may choose to make.

Once you’ve installed a standard or blank child theme, you’re free to use the Divi Builder as per normal, and, in the event that you add additional code, it won’t be overwritten by theme updates. Also, using a child theme will make sure that the core code files of the parent theme will not be tinkered with.

To use a standard or blank Divi child theme, you can either download one for free using the Divi Space Child Theme Maker or purchase the Aspen Roots child theme which adds a few premium functionality features.

Alternately, you can create your own child theme from scratch. For this, you’ll need either a Text Editor program or an IDE (Integrated Development Environment) such as Brackets or Sublime.

How to Create Your Own Divi Child Theme

A child theme is comprised of two core files: functions.php and styles.css.

The functions.php file will signal to WordPress that there is a child theme present and that it piggybacks off of a particular parent theme. Open up your text editor or IDE, copy and paste in the following code and save the file as functions.php.

<?php
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
function my_theme_enqueue_styles() {
    wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );

}
?>
Next, move onto the CSS file. Create a new document in either your text editor or IDE and save it as style.css. Copy and paste in the following code:
/*
 Theme Name: Divi Child Theme
 Theme URI: https://yourwebsite.com
 Description: Child theme, based on Divi
 Author: Your Name
 Author URI: https://thisauthor.com // Your web address
 Template: Divi
 */
This little bit of code is crucial as it both offers information regarding the nature of your child theme.

The ‘Template’ designation instructs WordPress as to which theme to use as the parent. This file allows you to keep all of your CSS in one central location, and too, will protect the code work should the parent theme (Divi) update.

Adding an image to your child theme is recommended, but not an essential. Should you wish to do so, create the artwork with the dimensions of 880 px x 660 px and save it as screenshot.jpg or .png. After theme activation, this image will reflect as the display for the child theme in the Appearance > Themes console.

Once you’ve got all of these files together, add them into one folder and rename it accordingly, something relating to the company or business website you’re building.

Compress the folder and upload the .zip file to the Themes > Add New console on the WordPress backend.

Once the upload is complete, Activate the theme and voila! You’re officially running a child theme with your Divi website.
Again, as mentioned above, if you’re looking for a ready-to-go blank child theme solution, you can simply download a child theme via the Divi Space Child Theme Generator or purchase the Aspen Grove Studios Aspen Roots Blank Child Theme .

Premium Divi Child Themes

Premium Divi child themes are created by third-party developers and are purchased directly from their respective online stores.
If you’re using the Divi and/or Extra theme, you’ve got a plethora of premium child themes to choose from as a number of independent Divi developers and development agencies have taken on the responsibility to develop premium child themes for the global Divi community.

These premium child themes offer value, for a price.

Here, almost aspect of both web design and development is already complete. From layout design to element styling, font group, and color selection, and in most cases, animations too, practically every detail of web design and development is taken care of.

In the case of premium Divi child themes, demo content (typically Lorem Ipsum dummy text and free stock photography) is used to create the idea of a completed site. This demo content is created as a guide for you, instructing you where to place your own content relating to your brand or business.

All you’ll need to do is select the pages you need, delete the ones you don’t, and add your text and image content into the relevant Divi Builder modules. If you so desire, you’d be able to open each of the modules and view both the General and Advanced Design Settings as well as the custom CSS scripting (if any).

Although they may differ as per the development styles of each third-party seller, premium child themes typically include the child theme files (style.css, functions.php and others), installation instructions, as well as easy-to-install page layouts and Customizer settings. Some child theme developers include PhotoShop .psd files of their child theme packages. Usually, premium child themes include a one-click demo content install process.

Each of the Divi Space premium child themes and Aspen Grove Studios premium child themes include additional features, including the Aspen Footer Editor plugin (which allows you to create a beautiful footer area for your Divi website), a Login Customizer (for you to add custom branding to overwrite the wp-admin screen) and a 404 error page template (for you to redirect lost site viewers).

Should I Use a Standard Child Theme or a Premium Child Theme?

Deciding between whether to use a Divi child theme or a premium Divi child theme largely comes down to what your business and website needs and requirements are.

Either option will suffice for your Divi website in protecting your CSS, one will just offer more value if you’re willing to pay for it.

If you are pressed for time, opting for a premium Divi child theme will let you bypass weeks of work in order to get your website up and running in a matter of hours. If, on the other hand, you have time at your disposal, or are determined to create your very own piece of web property, then start from scratch, but use a standard or blank Divi child theme before you begin.

We highly recommend using the Divi Space child theme maker for this.

Even though premium Divi child themes come at a price, they’re a small investment compared to the costs of custom website development. Where custom, self-hosted WordPress websites can cost thousands of dollars to build, using child themes comes at a fraction of the price, and too, will often come with support services in case you get stuck.

Head on over to the Aspen Grove Studios shop to view our range of premium Divi and Extra child themes. As mentioned above, each of out child themes come with premium features (the Aspen Footer Editor plugin, a Login Customizer, and a 404-page template).

If you’re a developer and are interested in using a number of our premium child themes in conjunction with our plugins on unlimited websites, have a look at our Membership Plan.

We want to hear from you!

Have you used premium Divi child themes in the past? What was your experience?

We hope that you’ve enjoyed reading this blog post. If you have any queries or comments, please feel free to share them below.
We love receiving your feedback!

Thanks for reading!

Lisa-Robyn Keown

Lisa-Robyn is a qualified copywriter and brand strategist from Cape Town, South Africa.