Block Themes From Scratch: Part 5 - Child Themes

Sdílet
Vložit
  • čas přidán 30. 07. 2024
  • Child themes are a useful way to tweak things in your theme without modifying the whole theme package. They are especially useful if you are distributing the theme or managing multiple sites that are all based on the same parent theme.
    🧰 Resources:
    • Block Themes From Scratch Series Playlist: • Block Themes From Scra...
    • Child Themes in the WordPress Theme Developer Handbook - developer.wordpress.org/theme...
    🌐 My Websites:
    • adamlowe.io
    • peakperformancedigital.com
    ✅ Connect with Me:
    • Facebook: / peakperformancedigital
    • LinkedIn: / adamshawnlowe
    • CZcams: / @adamloweio
    • Twitter: / @adamslowe
    ⚙️Tools I Use:
    • WordPress.org: wordpress.org/
    • Pinegrow Website Editor: pinegrow.com/
    ⌚ Timestamps:
    00:00 Intro
    00:35 Why use child themes
    02:08 Creating the child theme
    03:44 Overriding theme.json
    04:43 Overriding the default font
    05:14 Adding an admin stylesheet
    06:20 Outro

Komentáře • 3

  • @kentek3141
    @kentek3141 Před 3 měsíci

    Ok, as you are about the only one speaking of child themes here is my question: If I have a parent site created with a classic theme to get into a WP Block them I should just convert the parent theme to new block and most of child migration will be complete.

    • @AdamLoweIO
      @AdamLoweIO  Před 3 měsíci

      It’s even easier than that, actually. As soon as you add a templates/[templatename].html file into your child theme WordPress sees that you want to make a block theme template and enables the site editor for you. From there you can just convert the templates one at a time at your own pace.

    • @kentek3141
      @kentek3141 Před 3 měsíci

      ...and the child theme was a custom by others. I don't think it will play nice.