• Resolved EyeMagicGraphics

    (@eyemagicgraphics)


    After a long hiatus, I’m attempting to understand FSE, and Block theming. My question has to do with creating a child theme for protecting customizations (fonts, etc.) from being overwritten on updates. Are there any special instructions to consider in the style.css & functions.php files? For example, is the child themes Handbook guidance still accurately describing the required steps to take in regards to a ‘Block theme’? Are there any important guidelines or instructions specific to Blockpress to “enqueue the parent and child theme stylesheets” in the functions.php file? Also, if we copy/created templates and template parts, do we put those in the same folder hierarchy of the child as the parent theme (i.e. ‘child\parts\’ & ‘child\templates\’)? Also, does a child theme for a block theme require it’s own “theme.json” file that has to be separate from the parent theme (i.e. child\theme.json)?

    Apologies for my inexperience 😊

    • This topic was modified 2 years ago by EyeMagicGraphics. Reason: clarity
    • This topic was modified 2 years ago by EyeMagicGraphics. Reason: clarity and additional question re theme.json file handling
Viewing 4 replies - 1 through 4 (of 4 total)
  • Why do you need child theme for Block theme. It’s because everything in block theme is Block based and it means that you can simply change everything via Appearance – Site editor.

    Once you made changes, then, it’s stored as your templates. Think about it as you make child theme but directly in editor. You can even download your actual files if you click on dots in top right corner of Site editor – Export templates. In WordPress 6.0 this will be even improved more

    • This reply was modified 1 year, 11 months ago by wpsoul.
    Theme Author MotionBlocks

    (@motionblocks)

    I think that making child themes for Block theme is the same as for Classic

    hello @eyemagicgraphics you can use Automattic’s child theme creator for block themes. it works well with blockpress, too as far as I tried.

    https://github.com/Automattic/create-block-theme

    Theme Author MotionBlocks

    (@motionblocks)

    Closing

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Child theme protecting customizations’ is closed to new replies.