Is there a good way to dynamically enqueue css/javascript other than using a child theme?
For instance, I have custom gallery plugin for posts that uses its own CSS/js. I don’t want to add the CSS/js on every page load, but only on posts that actually have the Gallery.
Typically, I’d hook wp_enqueue_script() in functions.php.
I’ve used this method inside Code Blocks in Oxygen before. I’ll check tomorrow if I needed to do anything special, but I’d imagine it’d work with Cwicly as well.
The same thing should work with any page builder that has a code block. You can also use a snippet manager instead of downloading the My Custom Functionality plugin.