Add custom CSS and JavaScript to any WordPress block in Gutenberg

preview_player
Показать описание


00:00:00 Introduction
00:01:28 Registering custom JavaScript for a block
00:06:44 Registering custom CSS for a block
00:09:53 Using Query Monitor to debug assets
00:10:41 Other uses for custom block assets
Рекомендации по теме
Комментарии
Автор

This is exactly what I was looking for, thank you so much for the tutorial!!

montanna
Автор

Oh this is handy! Thanks Brian!

Also - Been liking the new focus zooms in your videos - what are you using for screen recording now?

Steve-Ariss
Автор

Nice! I've been thinking about this alot recently, you mind if I use your example in my next YT video?

elliottrichmondwp
Автор

How can a non-coder add some basic javascript from the admn panel? With CLassic themes, one can use a plugin like Code Snippets to add css or javascrpts. Will those plugins work with block themes as well?

Whatreally
Автор

how do I add my css to a block theme for the entire site?

masterng
visit shbcf.ru