wpengine / frost

The ultimate WordPress block theme for website designers and developers.
https://wordpress.org/themes/frost/
GNU General Public License v3.0
557 stars 144 forks source link

Did I create child theme correctly? #171

Closed HatlerRyan closed 1 month ago

HatlerRyan commented 1 month ago

I'm incredibly new to anything code and backend development, and want to clarify before moving to far ahead. If this is the wrong place for that, just delete or tell me and I'll find the correct spot.

I've created a child theme, purely with a style.css and this is what's in it: / Theme Name: frost Child Theme URI: https://frostwp.com/ Description: frost child theme Author: WP Engine Author URI: https://wpengine.com/ Template: frost Version: 1.0.9 Text Domain: frost /

Wordpress child theme documentation says I don't need to do anything else, and it appears to be working. However, a ton of other sites are saying to create a function.php file as well, but when I do that, things get wonky.

shameemreza commented 1 month ago

You can add a functions.php file, but it's not always necessary. In a block theme, the theme.json file usually takes care of the style. However, if you're using a classic theme, you will need to create it.

When it comes to the block theme, the child theme doesn't need to do anything if the parent theme loads both stylesheets. The system will automatically load its stylesheet.

More information can be found here: https://developer.wordpress.org/themes/advanced-topics/child-themes/