Site logo

Archived topic

need to activate generatepress before child theme otherwise child renders blank

2 replies · Started by Stew on February 28, 2023

Viewing posts 1–3 of 3

I install WordPress via a bash script using WP CLI and I noticed that if I activate a child theme of generatepress (for example the blank starter child theme found here https://docs.generatepress.com/article/using-child-theme/) without first activating generatepress itself, the home url shows a blank page.

To see whether this happens with other themes I created a child theme of twentytwentythree (style.css has Template: twentytwentythree) and activated it without activating its parent, and it rendered the home page using the parent theme as expected.

For now I just activate generatepress and then activate its child theme, but I was wondering why this is necessary (assuming this is reproducible)?

Nevermind, I tested this again using a cut-back version of my installation script that does not re-import the database and de-activates all plugins and does not set any generate_* options, etc, and it seems to work fine when I just activate the child theme without having to activate generatepress first.

Glad you've got this sorted :)

This archived topic is closed to new replies.