Site logo

Archived topic

CSS with child theme based on a Site Library template

4 replies · Started by oceansurf99 on March 26, 2021

Viewing posts 1–5 of 5

Hi, I'm using a Site Library template ("Article") and created a child theme from it.
To create the child theme I copied over all the files to the new child theme directory since there were errors if I didn't have the /inc and /assets directories and other files there.

I tried to add some CSS to main.min.css, as that is what appears to be the CSS file that's included in the site. I know it's a minified file. What is the best way to add CSS to this child theme? How and when is the minified CSS file being generated?

Thanks.

Also, with the child theme enabled, I'm now seeing this notice:
"GP Premium requires GeneratePress to be your active theme."
What can I do about this?

Hi there,

If you want to use a child theme after a site library template is imported, you just need to copy all the CSS from Additional CSS field from the parent theme to the child theme's style.css file and no need to do anything else.

Also, with the child theme enabled, I’m now seeing this notice:
“GP Premium requires GeneratePress to be your active theme.”
What can I do about this?

Make sure the parent theme is still installed (but deactivated).

It looks like I was missing the "Template: generatepress" line in style.css of the child theme... ;)
That actually fixed it, haha.
And thanks for mentioning that, I copied the Addional CSS over from the Customizer.

No problem :)

This archived topic is closed to new replies.