Bricks Builder: Enqueue JS and CSS in Editor and Preview

Опубликовано: 15 Май 2026
на канале: WP Easy
783
26

Unfortunately as at Bricks 1.10.3 there are no WP Hooks to load scripts in the Editor or Preview.
However, there are times when you would like to load custom JavaScript or CSS in these areas.
This video shows a way to fire and listen for a custom WP Hook.
We use WPCodeBox to both fire the hooks and then listen to the hooks to enqueue scripts. If you don't have WPCodeBox, you can do the same in your child theme.