Перейти к содержимому

Add custom CSS and JavaScript to any WordPress block in Gutenberg

Brian Coords

0:00 / 0:00

Add custom CSS and JavaScript to any WordPress block in Gutenberg

4 952 просмотра · 1 год назад
Brian Coords
3,61 тыс. подписчиков
4 952 просмотра · 1 год назад
We're adding custom CSS and JavaScript files to WordPress core blocks. Modify any block.json with simple PHP to load your own custom CSS and JavaScript in Gutenberg. 🚨 Free Series: https://www.briancoords.com/7tools 👉 Full Code: https://github.com/bacoords/example-b... 00:00:00 Introduction 00:01:28 Registering custom JavaScript for a block 00:02:50 How to filter Block.json 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