How to enqueue JavaScript in a simple way. #598
Labels
documentation
Issue in documentation or videos
javascript
php
question
Further information is requested
Issue Overview
Is really enqueue of JS files that complicated as shown in that tutorial
https://www.linkedin.com/learning/wordpress-building-progressive-themes-with-wp-rig-2/enqueue-javascript-files
?
I've been using WP Rig for building websites for a long time, but now when I switch to version 2.0 I have the impression that building process is more complicated in some ways.
How can I enqueue simple js file, for example, "scripts.js" with alert( 'test' ) which show on all pages? The tutorial from the link above, with components, drives me crazy.
In WP RIG 1 you could do that in functions.php
What is the best way to just enqueue js file to my website build with WP RIG 2.0?
I think the way it is presented by Morten in that course linked above only increases entry-level to build themes using this tool.
The text was updated successfully, but these errors were encountered: