Builder Basics: Adding Custom CSS to Block Themes

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 ก.พ. 2023
  • One major benefit of block themes is that they can be built with very little CSS. For example, the Twenty Twenty-Three theme has none. All block styles are defined in a theme.json file. While theme.json is getting more powerful with each WordPress release, you will likely need to add some custom CSS in most projects.
    This Online Workshop will explore ways to add custom CSS to a block theme while ensuring those styles work correctly in the Editor and on the site's front end. If time permits, we will also discuss a Sass workflow you can employ to optimize per-block styles.
    ---
    View this video and others on WordPress.TV: wordpress.tv/2023/02/08/build...

ความคิดเห็น • 13

  • @rafi_45
    @rafi_45 ปีที่แล้ว +1

    21:16 thank you so much. This is I really need to know.

  • @christophbugel7160
    @christophbugel7160 9 หลายเดือนก่อน

    Awsome lecture! Thanks

  • @TechFusionUniverse
    @TechFusionUniverse 8 หลายเดือนก่อน +1

    How are you syncing vs code and wordpress

  • @waltermarcelo751
    @waltermarcelo751 11 หลายเดือนก่อน

    Muy bueno 👍

  • @AliKhan-jz3zs
    @AliKhan-jz3zs ปีที่แล้ว

    why I'm getting undefined function for add__action(), add__filter() when using in functions.php in twenty twenty three block theme

  • @TechFusionUniverse
    @TechFusionUniverse 8 หลายเดือนก่อน

    Whenever i make changes in theme.json it cannot update in wordpress editor

  • @HBrooks
    @HBrooks ปีที่แล้ว +4

    needlessly complex to add custom CSS. with each iteration wordpress gets less usable unless you're a heavy programmer.

    • @slk-320
      @slk-320 ปีที่แล้ว +2

      I am a commercial themes author for many years. I just rebuilt on of my themes to FSE from classic approach. The amount of PHP, HTML and CSS code is now reduced by at least 90%! And I am still not yet an expert in block themes. Yes, you need to learn how things work the new way. By complexity I would compare it to learning a CSS. The level of difficulty is now many times less than before. I am not nostalgic about the old WP at all.

    • @Jack_Warner
      @Jack_Warner 9 หลายเดือนก่อน

      @@slk-320 CSS is a walk in the park compared to this.

    • @taunado
      @taunado 2 หลายเดือนก่อน

      @@Jack_Warner This is theme development. As far as that goes it's standard, if not easier.

    • @estevancarlos
      @estevancarlos 29 วันที่ผ่านมา

      @@slk-320 I don't see how clicking around in the admin is an effective way to theme.

  • @estevancarlos
    @estevancarlos 29 วันที่ผ่านมา

    This is a weird direction for Wordpress. Not a fan.

  • @Blender.Quebec
    @Blender.Quebec 10 หลายเดือนก่อน

    Hello ! I have copy the twentytwentytwo fonction.php file into twentytwentythree, but it give me an error. twentytwentytwo php file seem different that in your video :-) Will try to google it, but would be cool if the description could be updated !!