Child Theme Issues

There’s a lot of instructions out there on how to create child themes, some of which are pretty dated.

There are certain things that are suggested to add to your child theme which will break functionality in GeneratePress, as these steps are done for you.


Some instructions/pre-baked child themes come with the following line included. This will cause some options in the Customizer not to work, and should be removed from your child theme style.css file:

@import url("../generatepress/style.css");

Enqueing the parent style.css file

If the @import method isn’t there, a similar function to the following might be in your functions.php file. It does the same thing as the @import method above, and should be removed as GP handles it for you.

function example_enqueue_styles() {
	wp_enqueue_style('parent-theme', get_template_directory_uri() .'/style.css');
add_action('wp_enqueue_scripts', 'example_enqueue_styles');

So once you’ve checked your child theme style.css and functions.php file and have confirmed neither of these methods exist, you’ll be good to begin customizing!