I was close here, but what needed to happen to make it work was to pass in true as an argument to the optional in_footer parameter like so:
wp_enqueue_script('cbd_main5_js', '', [], false, true);
Related Posts:
- How to load wp_editor via AJAX
- Getting a custom Gutenberg component’s state from outside that component
- How do I only load a plugin js on it’s settings pages?
- How can I change my javascript after it has been enqueued? [closed]
- What happened to convertEntities?
- Create Proper WordPress Ajax Request in JavaScript, NOT jQuery
- Ajax call doesn’t work in frontend but it’s working in backend (when I’m logged in)
- How do I use WordPress PHP functions in my Javascript code?
- How can I make the “Preview Post” button save and preview in the same window?
- How to avoid redefining requirejs in plugin when another plugin also uses requirejs
- Difference between register_block_type & wp.blocks.registerBlockType
- Has anyone used require.js for handling plugin scripts?
- Can I share predefined fonts from theme_support with a gutenberg component?
- How do I store information in a dynamic block in WordPress?
- javascript onload calling a function of a plugin
- W3 Total Cache: Load CSS asynchronously for better PageSpeed score? [closed]
- Pass a php string to a javascript variable
- Problem in loading javascript in footer
- How to load plugin after page is loaded – pagespeed issues
- add mediaelement.js plugins into WordPress video player control bar
- Shortcode button dosent work for all posts. Work for first post only
- Get IDs of Images from Gallery Block in InnerBlocks of a Custom Gutenberg Block
- React JSX in WordPress Plugin Development
- Internationalization autocomplete JS variable
- Is there an earlier hook than login_head or login_enqueue_scripts?
- Can someone please tell me what is wrong with my plugin?
- Scripts at the end of the page
- Enqueue WordPress plugin scripts below all other JS
- Can I use custom CSS and js plugin to put JavaScript in to validate my forms
- Time consuming callbacks in customizer
- add image crop function like in wp customizer
- Calculate price and display on woocommerce product single page under price (simple price, variable price) [closed]
- Executing Javascript when a New Post is Published
- Set featured image using javascript in post editor
- Display encrypted content on my website
- How to edit content before post update
- Trying to create a private area custom for each user where they upload images to a server [closed]
- wp.media javascript issue with on select
- WordPress + JavaScipt + AJAX + MySQL: insert query for form
- Advanced AJAX Page Loader ignores other JS code
- Add custom JavaScript that is a combination of CDN/uploaded files and easily-edited code?
- How to get my plug-in, wrote in php, to refresh on its own every 5 minutes?
- WordPress 3.8.3. custom theme – sliders won’t load js/css files
- Using TinyMCE in plugin?
- Is there a loading priority for login_enqueue_scripts?
- Delay JavaScript files from loading
- “Conflict” with jQuery (or its plugins)?
- How to execute a plugin on a single page only?
- MediaElement.js works on one site but not the other?
- Pass user role to javascript code inside body
- How to get specific string/value from an array? php [closed]
- Access post title from custom meta box on title change
- Background Music WP [closed]
- Adding a simple Javascript file with a plugin
- Social share buttons text shows up on post excerpts
- Dropdown menu on click change
- How do I override all stylesheets and scripts without a plugin
- Plugin Admin panel checkbox unchecked after submit
- Send Array from JS to php file then insert it in wp database through a plugin
- Gutenberg: Prevent links from being clickable in the block. Error: “Cannot destructure property ‘frameElement’ of ‘r’ as it is null.”
- How to override Plugin javascript function : $(‘body’).on(‘change’,’.class’)
- Connect / Login WordPress Hosted Website or Blog with NodeJs
- login form should redirect to register page for in 1st login next time it should redirected to home page
- Javascript embedded disappears for editors
- How to fetch WordPress database values in JavaScript widget
- Possible way of having multiple Gutenberg instances for a page?
- Woocommerce add products to cart
- Show popup on click
- Javascript not getting injected into page
- Why does my custom plugin only function correctly once per page?
- How can I create a secure file download in WordPress?
- WordPress site hamburger menu toggle not working
- AJAX update fails for public/non-admin users
- Woocommerce – Change variations output
- How to disable/enable PHP plugin functionality based on a TinyMCE toggle-button
- WordPress ajax error 400 bad request for sending data to remote site [duplicate]
- Customizer preview URL not updating when settings reset to default
- Caching of combined CSS and JS fails because of losing MIME types through combining by PHP
- wp_enqueue_scrpts seems not to get called
- show-hide based on select option jquery wordpress
- Speed issues because of CSS & JavaScript
- Having trouble going from Jfiddle to implementing in WordPress :(
- How to create a dashboard for logged-in users with custom functionality? [closed]
- Creating a user ‘add custom field’ section
- Javascript not working
- Creating custom URL for async content
- How do I convince this button to do something when it is clicked?
- Possible jquery / library conflict in plugin usage
- Plugin – including external javascript calling google maps
- Element works, but not on wordpress site [duplicate]
- how woocommerce swatch color name when hovered or selected
- How to create post comparison in wordpress
- WordPress shortcode plugin not working
- FacetWP: Plugin breaks button/modal functionality inside searchable content area
- TypeErrors with Yoast, jQuery in conflict?
- Count div with class (.length) only shows 0 [closed]
- Beginner question: Accessing js script in plugin
- Vanilla javascript in custom gutenberg block not working
- Sudden ERR_HTTP2_PROTOCOL_ERROR on every JS and CSS files loads
- Elementor Form : client side javascript validation