Site logo

Archived topic

Child theme naming rules?

5 replies · Started by Jesus Manuel on December 7, 2021

Viewing posts 1–6 of 6

Hi, I'm using the latest versions of GP, GP Premium and Generate Blocks on a WP 5.8. This is a development website, so there are no caching plugins. I´m using a child theme, with the client brand as the folder name and CSS declaration (without spaces nor special chars).

When I created the Home and the posts page everything works as expected, but when I came to create new pages, looks as if the page.php template isn´t not applied and instead the default index.php template is displayed with the latest post archive list.

After renaming the child theme folder (and theme name in CSS) to generatepress_child, everything looks fine.

My question: Is there a naming convention for the child theme, or some plugin may cause the problem? Thank you.

Yes, I have installed your blank child theme and I'm moving my CSS styles and scripts to styles.css and functions.php of the blank theme.

Can i see a Page on the site with your renamed child theme enabled ?

Hi again,

I think I got to isolate the issue, I had declared a CPT taxonomy using a reserved name ('year'). After changing the name and flushing the permalinks the pages looks correct while keeping my original child theme with the custom folder name.

Regards.

Glad to hear you found the issue!

This archived topic is closed to new replies.