Brian Coords - WordPress Dev
Brian Coords - WordPress Dev
  • Видео 30
  • Просмотров 68 782
WordPress 6.6 is changing the game for Custom Fields
WordPress is bringing Custom Fields to blocks. The Block Bindings API is going to change the way we code for postmeta, and WordPress 6.6 is our first glimpse.
👉 All the code: github.com/bacoords/example-block-variation/tree/6.6-bindings
🚨 Free Video Series: 7 Tools for Modern WordPress Development 🚨
👉 briancoords.com/7tools
00:00:00 Intro to Block Bindings
00:00:53 Custom Fields and CPTs in 6.6
00:02:14 Post Title Block and Synced Data
00:03:09 Template Preview Mode
00:05:56 Code for Custom Fields
00:08:40 Showing Post Meta in the Block Editor
00:09:31 Next Steps
Просмотров: 8 306

Видео

Registering Block Settings in PHP? Build in Public Ep 6
Просмотров 1,1 тыс.2 месяца назад
Thoughts on adding custom fields to Gutenberg blocks- using PHP, no JavaScript or React. Should WordPress let us register custom fields on blocks? 👉 10ups Gutenberg Best Practices - gutenberg.10up.com/ 👉 CMB2 - wordpress.org/plugins/cmb2/ 👉 Block Settings Repo - github.com/bacoords/block-settings 🚨 Free Video Series: 7 Tools for Modern WordPress Development 🚨 👉 briancoords.com/7tools 00:00:00 I...
WordPress Playground Blueprints and 6.6 Beta
Просмотров 5732 месяца назад
Let's dig into WordPress Playground and see how you can use it to do anything with WordPress, including beta test the next major release. 🚨 Free Video Series: 7 Tools for Modern WordPress Development 🚨 👉 briancoords.com/7tools 👉 Playground: playground.wordpress.net/ 👉 Playground Docs: wordpress.github.io/wordpress-playground/ 👉 Blueprints Gallery: github.com/WordPress/blueprints/blob/trunk/GALL...
Query Monitor - 7 Important Tools for Modern WordPress Development #1
Просмотров 1,3 тыс.3 месяца назад
Get the full series: www.briancoords.com/7tools 00:00:00 Introduction 00:00:57 What is Query Monitor 00:02:48 Debugging PHP Errors 00:03:18 Dumping Variables 00:04:58 Timing and HTTP 00:06:19 Next Steps
Bricks vs Block Themes: My Followup to Bridge Builders
Просмотров 2,8 тыс.3 месяца назад
Followup to the Bridge Builders livestream, going over the custom block theme and my (minimal) set up, and thoughts on the page builder RUclipsr community's obsession with "dynamic data". 🚨 Free Video Series: 7 Tools for Modern WordPress Development 🚨 👉 briancoords.com/7tools 👉 Bridge Builders Episode: ruclips.net/video/al23k0Kv3H4/видео.html 👉 Example Site: fiji-of-herrings.wp.build/ 👉 Block S...
WordPress Studio Review
Просмотров 3,1 тыс.4 месяца назад
WordPress.com released their new local development tool- and there's been a lot of misconceptions lets clear those up, talk about some of the underlying technology, and compare it to the elephant in the room: LocalWP. 🚨 Free Video Series: 7 Tools for Modern WordPress Development 🚨 👉 briancoords.com/7tools 👉 Subscribe for WordPress tips: www.briancoords.com 👉 Studio: developer.wordpress.com/stud...
Using Block Variations with the Block Bindings API
Просмотров 1,8 тыс.5 месяцев назад
Let's dig into the new Block Bindings API in WordPress 6.5 - with a focus on how to offer a "no-code" experience for your users with Block Variations. 👉 Learn More: www.briancoords.com/newsletter 👉 GitHub Repository: github.com/bacoords/example-block-variation
How the block editor handles CSS (Building in Public - Block Styles Manager Ep 5)
Просмотров 4946 месяцев назад
How the block editor handles CSS (Building in Public - Block Styles Manager Ep 5)
Using Core Data and Sharing Context across WordPress Blocks
Просмотров 1,4 тыс.6 месяцев назад
Using Core Data and Sharing Context across WordPress Blocks
Thoughts on Editor UI (Block Styles Manager - Build in Public Part 4)
Просмотров 3646 месяцев назад
Thoughts on Editor UI (Block Styles Manager - Build in Public Part 4)
Building a Block Styles Manager - Episode 3
Просмотров 4457 месяцев назад
Building a Block Styles Manager - Episode 3
WP REST API and Postman - Using Application Passwords in WordPress
Просмотров 1,5 тыс.7 месяцев назад
WP REST API and Postman - Using Application Passwords in WordPress
Block Styles Manager for WordPress - Ep 2 (Build in Public)
Просмотров 4897 месяцев назад
Block Styles Manager for WordPress - Ep 2 (Build in Public)
Building a Block Styles Manager - Ep 1 (Build in Public)
Просмотров 1,1 тыс.7 месяцев назад
Building a Block Styles Manager - Ep 1 (Build in Public)
How to Build Dynamic (PHP) Blocks in WordPress
Просмотров 9 тыс.7 месяцев назад
How to Build Dynamic (PHP) Blocks in WordPress
Building an example layout in Gutenberg (response video)
Просмотров 4 тыс.8 месяцев назад
Building an example layout in Gutenberg (response video)
Adding Custom Fields (attributes) to Core Gutenberg Blocks | WordPress
Просмотров 5 тыс.9 месяцев назад
Adding Custom Fields (attributes) to Core Gutenberg Blocks | WordPress
Easy custom blocks using InnerBlocks in Gutenberg
Просмотров 3 тыс.Год назад
Easy custom blocks using InnerBlocks in Gutenberg
Redesign Lists in WordPress with Register Block Style
Просмотров 1,3 тыс.Год назад
Redesign Lists in WordPress with Register Block Style
Custom Responsive Settings in Gutenberg Blocks
Просмотров 7 тыс.Год назад
Custom Responsive Settings in Gutenberg Blocks
ACF Blocks Post Carousel Tutorial
Просмотров 4,2 тыс.Год назад
ACF Blocks Post Carousel Tutorial
Managing Images in your Custom Gutenberg Block
Просмотров 1,7 тыс.Год назад
Managing Images in your Custom Gutenberg Block

Комментарии

  • @cholo2605
    @cholo2605 15 часов назад

    Thanks a lot for all your contributions 🙏

  • @davouid69
    @davouid69 День назад

    Thanks! Clear, nice and helpfull!

  • @Xenio2007
    @Xenio2007 День назад

    Wow, amazing content, this is how you move Wordpress forward. Not yelling! Many people who use Visual Builder do not understand that it is essential to have version control of files/code. I often use Bricks Builder and love it, but I also happen to develop sites where is essential to have control over what happens in the theme/plugin.

  • @elliottrichmondwp
    @elliottrichmondwp День назад

    Very cool and exciting, thanks for the demo and backstory - much appreciated.

  • @TiagoSLoureiro
    @TiagoSLoureiro 2 дня назад

    I really like this. Definitely the right direction for the block editor. I have always liked gutenberg for editing content; I do believe it is a way better experience than just custom fields; I just don't want to see wordpress trying to become a wix competitor. Also, page builders need to start taking gutenberg seriously. Etch has the right idea for sure.

  • @coderpavan
    @coderpavan 4 дня назад

    How to get custom post type in a acf block template

    • @BrianCoords
      @BrianCoords 22 часа назад

      Can you explain what you're trying to accomplish?

  • @jamiewp
    @jamiewp 6 дней назад

    Great work Brian 💪 If you do another one let me know and I'll ask lots of irritating questions in the live chat as you build.

    • @BrianCoords
      @BrianCoords 5 дней назад

      I'm planning on doing this again while in Portland. On a stage.

  • @ClarkTelecom
    @ClarkTelecom 6 дней назад

    Many thanks, very well explained!

  • @johndaniel21343
    @johndaniel21343 6 дней назад

    Can't wait to see core vanilla Wordpress custom field user friendly

    • @BrianCoords
      @BrianCoords 5 дней назад

      Then definitely stay tuned!

  • @Kyle-MustangMktg
    @Kyle-MustangMktg 8 дней назад

    The explanations are great, and if you were just streaming it would be fine. But if you want to practice for the speed build, I think you should just build. If you want to simulate Jamie asking questions maybe you could have an additional timer that goes off every 5-10 minutes and do an explanation, or field questions from chat. If you were just building, it is possible you would have more questions from those watching.

    • @BrianCoords
      @BrianCoords 8 дней назад

      Oh yeah that's a good idea! I'm not really practicing for how 'fast' I can go, but more 'can I think through this while I have the pressure of a live audience'.

    • @Kyle-MustangMktg
      @Kyle-MustangMktg 8 дней назад

      @@BrianCoords I think it is less about speed, and more about how many different sections you get a chance to tackle and learn how to best deal with them. But hey it is your build and your channel, so do what works for you! I'm just happy to watch a professional at work.

  • @veppa
    @veppa 8 дней назад

    4 second for External API Request is too much. Wordpress admin also has lot's of external requests (wp_http). To optimize wordpress admin for speed you may need to block some wp_http external requests.

    • @BrianCoords
      @BrianCoords 8 дней назад

      Yeah it's definitely not ideal, especially if it's happening when server response speed is critical, like adding items to a shopping cart.

  • @danparrajr
    @danparrajr 11 дней назад

    This looks amazing Brian! Is it possible to save fields to custom tables through the editor?

    • @BrianCoords
      @BrianCoords 9 дней назад

      You mean custom tables in the database, instead of using postmeta? If you use postmeta, there's a lot of work done for you already. If you want to use custom tables, you'll just need to write your own REST API endpoints to handle communicating between the block editor and your database tables.

  • @mohdom6
    @mohdom6 13 дней назад

    Can you make 101 theme building series for beginners? could be a good introduction to php

    • @BrianCoords
      @BrianCoords 12 дней назад

      Making a more in-depth series is on my list of things to do when I have more time, which never seems to happen

  • @jmactravel
    @jmactravel 13 дней назад

    Thank you. After doing a bootcamp, and applying to 1000's of jobs this past year...I'm going to pivot and start my own website dev company, making wordpress sites for clients and I'm trying to figure out where to set up my local development. Your video was super helpful. Do you think I should use wordpress/env? Would I also need Local?

    • @BrianCoords
      @BrianCoords 12 дней назад

      I think Local is the best place to start for sure. It's very easy to install and get running, very easy to import/export sites. I would start there.

  • @derek-hanson
    @derek-hanson 14 дней назад

    Nice! I love how Brian critiques the site as he’s building it. Legend!

    • @BrianCoords
      @BrianCoords 14 дней назад

      Haha this is why I shouldn't livestream. I do better when I'm editing myself.

    • @derek-hanson
      @derek-hanson 14 дней назад

      @@BrianCoords the stream of conscious approach is way better! I love to see how people are thinking when they work. Plus, I'm guilty of it as well 😜

  • @uweseemann8571
    @uweseemann8571 15 дней назад

    I learned a lot. Thanks!

  • @michieltieleman9462
    @michieltieleman9462 18 дней назад

    May I ask how you made it so that the custom post type template has editable blocks in them? Currently for a template I usually have the header block at the top, post content block in the middle with some different block spacing and/or width setting, and the footer block. When I make a new custom post item, I manually copy over the blocks I need from another post, or use patterns or something like that. What I'm looking to get done is to have each new post of a certain post type be "preloaded" with a couple of "synched patterns" (so I don't have to do this manually all the time). Kinda like you have in your book custom post type above. I can't find the video you mention around 1:00 minutes. How did you achieve this or do you have a link to that video?

    • @BrianCoords
      @BrianCoords 14 дней назад

      There is a "template" parameter that can be used when you register a post type developer.wordpress.org/block-editor/reference-guides/block-api/block-templates/#custom-post-types You can also offer the "Choose a Pattern" popup experience: www.briancoords.com/how-to-show-the-choose-a-pattern-modal-by-default-on-new-pages/

  • @Whatreally123
    @Whatreally123 18 дней назад

    Hi Brian, Off topic question. I am building a simple site using 2024 theme and core blocks. I am trying to find information on how to add Google AdSense code to websites built on Block themes. All the tutorials and videos are for Classic themes where they update the header file or body file. Not sure that's how to do it on sites built on Block themes. Can you shed some light on how can one add AdSense code to block websites? Thanks.

    • @BrianCoords
      @BrianCoords 14 дней назад

      If you're comfortable with code, then you'd use a hook like wp_head to add it. Otherwise, I'd recommend using the Google Site Kit plugin: wordpress.org/plugins/google-site-kit/

  • @murfemersed
    @murfemersed 22 дня назад

    I just tried it on PC. Tried to import an all-in-one wp migration file with proper search/replace and it failed. going back to local. this did seem much lighter but it also seemed slower as well like it's not allocating enough resources.

    • @BrianCoords
      @BrianCoords 20 дней назад

      Yeah it's still in it's early days and has some compatibility work to do. It's quick with lighter sites, slower otherwise.

  • @maurobono5324
    @maurobono5324 26 дней назад

    Brian great tutorial. What if I want to create multiple block styles in a single plugin? Which is the best approach for loading CSS? is it possible to load a single CSS file that contains all my block styles?

    • @BrianCoords
      @BrianCoords 24 дня назад

      You definitely can. You can just load one CSS file like you would normally, since block styles just add a class to an element. Just make sure you enqueue it for the frontend AND for the block editor.

  • @marcjaner9937
    @marcjaner9937 27 дней назад

    Hey, one question. Isn't a render.php needed when this is used in a production wordpres site? Thanks!

    • @BrianCoords
      @BrianCoords 26 дней назад

      There are two types of blocks - dynamic blocks that use a PHP file to render the final block, and static blocks, which save the final markup in the content and don't need any additional PHP files to show up. This examples uses a static block.

  • @montyksycki4092
    @montyksycki4092 Месяц назад

    Thank You for sharing!!! :)

  • @Whatreally123
    @Whatreally123 Месяц назад

    Hi Brian, I am trying to modify an existing core block. I downloaded the src files from github. Using ChatGPT, i made minor changes to the main functions in the php file. However, I am unable to build this. I created the same folder structure in VS Code as on github but "npm start" issues errors. I tried learning from the create-block method but not sure how to map the same files available on github to the structure created by create-block. Is there any video or blog which details how I can build a custom plugin based on the src files of the core blocks downloaded from github? All I need to learn is how to build the plugin package. I have made the required code changes in the main php file. Thanks.

    • @BrianCoords
      @BrianCoords 26 дней назад

      If you're getting errors running `npm start` then there's probably an issues with how it was installed. I would recommend trying from the Create-Block package, getting that running, and then slowly copying over functionality until you get it working. I don't recommend using ChatGPT or AI code unless you're very comfortable with the fundamentals of how the code works, how the build process works, etc.

    • @Whatreally123
      @Whatreally123 26 дней назад

      @@BrianCoords Hi Brian, after a lot of time spent going through multiple articles and videos, I was finally able to tweak one of the core blocks to do what I want. Thanks for your videos. 👍🏽

  • @Lukasz-online
    @Lukasz-online Месяц назад

    Instead of using CSS to fix the pointer events, I can see core is using disabled component <Disabled> <ServerSideRender block="wpdev/example-dynamic-block" attributes={attributes}/> </Disabled>

  • @kjroelke7236
    @kjroelke7236 Месяц назад

    I don’t know if this is covered in a different video, but the way you registered your sidebar is totally different from how I would’ve gone about it! I would love to see you talk through your code choices and where to learn more about it! I’ve never even the `registerPlugin` function before 😅

    • @BrianCoords
      @BrianCoords Месяц назад

      So I have some demo code for how I do it, but I guess I haven't made a video about it yet! I'll add it to my list. github.com/bacoords/example-post-settings-field

  • @creyff437
    @creyff437 Месяц назад

    Hi, I'm really new to this. One quick question: can Local WP provide Live Demo like Studio WP? Or is there a workaround to make it so in Local WP? Many thanks in advance 🙏🏻

    • @BrianCoords
      @BrianCoords Месяц назад

      LocalWP has a few options - one is called "Live Links" which lets you share your local site across the internet. But your computer has to be turned on and the feature has to be running for people to see it, so it's only good for short-term demos. LocalWP also has great integration with WP Engine, so you can also push a local site to a WP Engine staging environment and share it that way.

    • @creyff437
      @creyff437 Месяц назад

      @@BrianCoords thank you for your answer, I will delve into staging with WP Engine then... Any hints or clues I should be ready for?

  • @SteveBryant-x6d
    @SteveBryant-x6d Месяц назад

    Great info! I got lost at one point, trying to understand, you are suggesting a different json file for each section as a separate file inside the them folders I guess, and frowned upon having a separate css file(s) like that I think? and would love a basic from scratch, blank theme, add file here, add file there kind of tutorial. Also how to trigger the new section theming? Like choose a dropdown in the bock editor? or your just showing changing the base blocks, not adding new block patterns? Looking forward to building a theme with multiple block patterns / synced and non-synced and several style variations now. Just not sure some of the exact 'where to click this or that' to choose which block is getting the style or sync.

    • @BrianCoords
      @BrianCoords Месяц назад

      As these tools get more powerful, I'm hoping to do a full beginning-to-end tutorial. As for separate JSON files, these are all processed server-side and shouldn't have any effect on the end performance of your site. These "section styles" are really just styles for blocks, so they show up when you select an individual block. In this demo, I'm making all my styles for the "Group" Block but that's not a requirement. Putting Block Patterns into themes is still not a great experience, but I'm hoping we'll see some progress around that in the future.

  • @sb_1389
    @sb_1389 Месяц назад

    This is super helpful; I'm trying to go through your walkthrough and implement for my use case. I really want to be able to add the custom field into the sidebar like you have, as they really get buried in the regular view and it's just not intuitive. My issue is that I want to use a text area, instead of a textbox. I've been trying to use the dev resources but it's not really working out (I'm not technically a developer). Any pointers you can offer?

    • @BrianCoords
      @BrianCoords Месяц назад

      You can check out the WordPress component storybook for examples of all the different types of input fields they offer. Here's one called TextareaControl which should work for you: wordpress.github.io/gutenberg/?path=/docs/components-textareacontrol--docs

  • @thewebstylist
    @thewebstylist Месяц назад

    Lawd there’s 100 things WP has needed to level up for yearssss SERIOUSLY why are improvements so few and far between

    • @BrianCoords
      @BrianCoords Месяц назад

      Every release has a ton of improvements, especially outside of GB in things like performance and security. But agree - I think we all would like to see some faster development/iteration.

  • @Lukasz-online
    @Lukasz-online Месяц назад

    Is their any good tutorial on how a custom block can call external API to retrieve data and show on the front end?

    • @BrianCoords
      @BrianCoords Месяц назад

      On the frontend? You can use a dynamic block (like described in this video) and then use core functions wp_remote_post() to hit your API and process the data. You'll also want to use some of core's cache tools so that you're not doing it one every single page load.

    • @Lukasz-online
      @Lukasz-online Месяц назад

      @@BrianCoords Thanks Brian, that's what I decided to do, all in the render.php so far. For the caching the http API is recommending to use transients. Keep up the great content!

  • @Lukasz-online
    @Lukasz-online Месяц назад

    That's cool - being able to add the template blocks in the cpt.

    • @BrianCoords
      @BrianCoords Месяц назад

      Yeah I'm hopeful it's a feature that will get more attention one day.

  • @spitsparrow
    @spitsparrow Месяц назад

    would you happen to know how to change the colour of the status bar on mobile devices. im using 2024 theme. Can't find anywhere where I can change the colour. Where the mobile displays battery, time, wifi signal etc. At the moment I have a a block called 'simple header with dark backgroun' - when I fill the background with blue the status bar is also coloured blue When I use other colours including black the status bar goes white.

    • @BrianCoords
      @BrianCoords Месяц назад

      Are you talking about changing the color on the mobile device outside of WordPress?

    • @spitsparrow
      @spitsparrow Месяц назад

      @@BrianCoords yes it appears that some pre built headers (patterns?)can do this but only with certain colours. Is it something to do with light or dark.? Just wonder where you can have more control over that part . I wanted the background image or cover to extend that far but not sure how. Does it only work with certain colour

  • @Kyle-MustangMktg
    @Kyle-MustangMktg Месяц назад

    At 20:53 you mention a plugin could opt-in to button styles, do you know if it is possible to do this from the theme? I added the Button class to the submit button in a contact form plugin, but WP didn't know to add the inline styles for buttons. Is there some way to tell WP to include them? (I added an empty Button block under my form, which is a hack, but did work to include the needed styles)

    • @BrianCoords
      @BrianCoords Месяц назад

      Depends on the theme developer including the styles, but theme.json has an option to add button styles and adds them to the class .wp-element-button, which should be loaded globally and is unrelated to the button block.

    • @Kyle-MustangMktg
      @Kyle-MustangMktg Месяц назад

      @@BrianCoords Thanks! I am using a child theme of Twenty Twenty Four. I'll give that a try.

  • @masterng56
    @masterng56 Месяц назад

    Thanks, Brian, I need a code

  • @SkyTonnessen
    @SkyTonnessen Месяц назад

    Thanks for the great tutorial! Though, if I wanted to modify the attributes of 2 different blocks (with different attributes) would I have to create 2 separate plugins? or would there be a way to bundle both into the build of a single plugin?

    • @BrianCoords
      @BrianCoords Месяц назад

      You can definitely do it all in one plugin. It's all just JavaScript. I like keeping things separated in small files and doing things separately but that's just a personal preference.

  • @EricThomson
    @EricThomson Месяц назад

    This looks like it might help me, I am trying to add a custom field (ACF) as an option for ORDER BY. My field is a date field named 'when' and I want to add option: 'when new to old' instead of using the publish date. Can you offer any incite into what is different about that case from the 'read more' button example?

    • @BrianCoords
      @BrianCoords Месяц назад

      I'm not sure I'm following the question here, can you provide a little more context?

    • @EricThomson
      @EricThomson Месяц назад

      @@BrianCoordssorry I guess my case is different because I am trying to add an option to the existing control: ORDER BY.

  • @imraan_alam
    @imraan_alam Месяц назад

    Kevin gets commission from bricks builder

    • @BrianCoords
      @BrianCoords Месяц назад

      I don't think they do commissions/affiliates yet. He also sells products that work primarily with Bricks builder, so it makes sense that it's what he uses/recommends.

  • @MD_jadaan
    @MD_jadaan Месяц назад

    Hi, it would be nice to make video about how to build that all code and what is possible examples to use it Thank for the high quality content you provide ! ... ... KEEP GOING !! love ya <3 ..

  • @MarkCMoran
    @MarkCMoran 2 месяца назад

    You mentioned that this video is for people who have some familiarity with node.js and npm and the development environment. But for those who don't, what course/tool/resource would you recommend for them to get up to speed so that the things you talk about on your channel make sense to them? Where would they go to get that knowledge? (Preferably an answer that isn't just "google it" or "go to the wordpress developer docs" would be great.) Thanks!

    • @BrianCoords
      @BrianCoords Месяц назад

      That's a good/hard question. I'm going to ask around and see. The hard thing about developer tools in general is that they're kinda always in the background, so content about them isn't as popular as content that's more directly showing how to build a specific thing.

    • @MarkCMoran
      @MarkCMoran Месяц назад

      @@BrianCoords Thanks for the reply. I look forward to hearing what you find out. :-)

    • @BrianCoords
      @BrianCoords Месяц назад

      I asked around and got strong endorsements for this free course (part of a larger paid course) by Ahmad Awais- who definitely knows his stuff and knows WordPress. nodejsbeginner.com/

  • @filippotinnirello
    @filippotinnirello 2 месяца назад

    How did you get the Vs code primary sidebar to the top left?

    • @BrianCoords
      @BrianCoords 2 месяца назад

      I think you can right click it and change the "Activity Bar Position" to "top"

  • @gregoirenoyelle
    @gregoirenoyelle 2 месяца назад

    Hi Brian, Thank you very much for this video. You should create an advanced video course on FSE . - You mentioned `blockGap`. Indeed, it doesn't work. However, in addition to typography and colors, you can add margins and padding, which work very well. You can even adjust them within the internal blocks. - Like you, I regret not having access to the `settings` object in variations. Visual Studio Code suggests it, but it doesn't change anything.

    • @BrianCoords
      @BrianCoords 2 месяца назад

      Yep, you can preset settings using a "block variation" but once it's added to the editor, you lose that global control over it, so it doesn't solve this particular issue. I should've mentioned that spacing values do work in section styles! I've thought about making a video course but I'm not sure I even know the best way to use FSE yet!

    • @gregoirenoyelle
      @gregoirenoyelle 2 месяца назад

      @@BrianCoords Thank you, Brian. I imagine you've thought about creating a course. I'm following up because I think many of us are eagerly waiting for it. You could use LearnDash. On my side, mine was released at the beginning of 2023 (WordPress 100% Block Expert), but it's in French. It covers all the important points: mastering the theme.json file, template hierarchy, CPT, and post meta. I'm going to update it to add block binding with ACF (it works very, very well).

    • @BrianCoords
      @BrianCoords 2 месяца назад

      I've definite thought about it and have roughed out some curriculum ideas. Each release I think "oh that new feature will solve this one problem" then I get distracted. I did take a few years of french but that was a few decades ago so not sure I'd be able to follow along

    • @gregoirenoyelle
      @gregoirenoyelle 2 месяца назад

      @@BrianCoords I understand the problem and I will try a new way. We could discuss it if you're interested. I don't think you need to take my course unless you want to review or deepen your technical French.

  • @spitsparrow
    @spitsparrow 2 месяца назад

    Do you have a video that shows how to change stacking order of column block on mobile? Its annoying that the columns are stacking left to right no matter what. Almost always need to change the order. Is it as simple as adding css snippet to the a column block?

    • @BrianCoords
      @BrianCoords 2 месяца назад

      I don't, but yes you can definitely do it with CSS, by registering a block style or just adding a class to your columns block and adding the CSS to your theme or in the "Additional CSS" panel.

  • @oliverjuhas
    @oliverjuhas 2 месяца назад

    Thanks for this video, Brian! I've noticed at 17:45 you set font size slug to heading sizes such as "h6". Not sure if this was fixed in WordPress already, but in the past I've noticed WordPress producing "--wp--preset--font-size--h-6" instead of "--wp--preset--font-size--h6" CSS variables. So it is better to use "h-6" slug instead of "h6" so you don't get confused yourself as a developer.

    • @BrianCoords
      @BrianCoords 2 месяца назад

      So it does still do the "h-6" thing. I've never thought of just making that the slug, but that's a great idea. Actually what I've been thinking recently is that I might switch to using the default font size names to be more compatible with other themes. Then I'll use this block styles feature to make the "h1 - h6" block styles which will actually be better because I can offer it on specific blocks and it'll handle more than just the size but also font, letter spacing, etc which was always a pain in the past.

  • @Shawn-Mosher
    @Shawn-Mosher 2 месяца назад

    Great video and topic! Kinda off topic but Do you have any thoughts or ideas about how to implement a dark theme option. Maybe with theme variations preferably? So if the user prefers dark mode the styles switch to that variation and possibly with a toggle switch ( light mode switch to dark mode). I think that would be cool video. Look forward to your thoughts!

    • @BrianCoords
      @BrianCoords 2 месяца назад

      I've heard some ideas about using variations but I've never seen it implemented. I suppose you could grab all the color values from a variation and (assuming you used the same naming convention) and output them to override the CSS variables yourself? I've definitely pulled the values out of theme.json manually in the past, I've just never done if from a variation that's not active 🤔

  • @spitsparrow
    @spitsparrow 2 месяца назад

    right out of the gate. I enter a group block and have NO option to change its width with Wide/full etc. It just doesnt exist. This happens with every tutorial i look at. Its just not the same on my screen. I am also using the 2024 them and have opened a front page template. Then deleted everything on it to make it blank. I enter a group block and no options for width. what is happening. Is this because its on top of some type of posts page? and not a front page empty template like im using. Its unbelievably confusing how you have to be editing in a correct spot of the 3 possible spots you can edit otherwise all your blocks will behave differently. (edit: looks like if i create a regular home page and NOT a Front page.. then i get some width options for the group block. Interesting that the same block has different options depending on what TYPE of page you are trying to build. This is a minefield of options and nearly non existent support or tutorials) When i search youtube for tutorials there are rarely up to date ones with the way Guttenburg blocks works these days. Im a brand new user and it just seems so limited.

    • @BrianCoords
      @BrianCoords 2 месяца назад

      I agree - the way the front page/home page works by default is very confusing and really should be changed in core WordPress.

    • @spitsparrow
      @spitsparrow Месяц назад

      @@BrianCoords looks like i HAVE To use the front page template and enter all content into it if i want to have a seperate front page style to every other page. really not sure how else to do it. But the front page template doesnt operate the same way (even has different design limitations) to other regular pages. unbelievably frustrating. Just creating a simple home page with a different header to the other 3 pages has been a nightmare process. No video has shown how to do it yet. The absolute very basics - create a home page/front page with a fancy header.. then all other pages will have a regular style header and content. NOT a single tutorial on how its meant to be done.

  • @elliottrichmondwp
    @elliottrichmondwp 2 месяца назад

    Thanks, Brian, this is great. I got super excited about the Block Bindings API in 6.5 as there is finally a logical link to using meta in templates. This is one step closer to what many developers have been wanting to see in block editor development. It's going to be interesting to see how the roadmap develops, especially for more complex data such as conditional statements and loops. I'm not sure how feasible that will be in 6.6, I probably need to revisit it to see how possible it is for things like repeating fields but it's definitely going in the right direction 👏

    • @BrianCoords
      @BrianCoords 2 месяца назад

      Agreed - it's also great when combined with query loops- developers can lean into custom post types, custom taxonomies, and custom fields and then use that to create repeater-like experiences all with core functionality.

  • @aishanstha
    @aishanstha 2 месяца назад

    I m following your video your previous videos and have setup multiple blocks. Is there a way to use the same package to bundle the index.js from src folder if it have No block.json file ?

    • @BrianCoords
      @BrianCoords 2 месяца назад

      Yes! You need to extend your webpack.config file. Here's an example from one of my repositories where I've added additional entrypoints into the build process: github.com/bacoords/block-pattern-plugin/blob/main/webpack.config.js

    • @aishanstha
      @aishanstha 2 месяца назад

      @@BrianCoords it works :) Thanks alot

  • @aishanstha
    @aishanstha 2 месяца назад

    Does version 6.6 of the latest WordPress block theme (Full Site Editing) compile all block CSS into one file? Concerned about potential impacts on load times and optimization if multiple inline CSS styles are used. Please share your thoughts. Thanks

    • @BrianCoords
      @BrianCoords 2 месяца назад

      All block CSS is combined, but if a block is not present on that page, the block's CSS isn't loaded. But for blocks that are used pretty regularly or might show up on every page (group, navigation, columns, button) you'll can often expect that CSS to be loaded globally,

    • @aishanstha
      @aishanstha 2 месяца назад

      ​@@BrianCoords thanks again for reply in this as well. Is this inline a new trend in web development. Previously, adding inline is treated as a bad practice and can cause unexpectedly styling behaviors and make it more difficult to debug or modify styles. Also and if we need to change some behavior then we need to explicitly add '!important ;' to override the default styling.. What your take onto this? or is there a way to bundle atleast all our custom block styles and Js into one main file ? Thanks

    • @BrianCoords
      @BrianCoords 2 месяца назад

      I don't mind the inline style tags, but when they put style attributes directly on an element it's annoying. That said, it should only ever be done when you've added that style to a block in the editor, in which case it sort of makes sense. There is a filter to turn that off and get your CSS/JS as one file. The downside is that the inline styles are actually helpful for page speed scores because it can render the top of the page without waiting for everything to load.