Uncaught ReferenceError: tippy is not defined
Uncaught ReferenceError: tippy is not defined
Uncaught ReferenceError: tippy is not defined
You don’t seem to have a trigger for your JS. You can test that the script is actually running by adding a quick console, such as console.log(‘xyz.js is running’); Once you’re sure your JS is running, you can add a trigger. If you’re already loading jQuery, it has an easy .ready() function to use, but … Read more
Give this code a try: var query = window.location.search.substring(1); var paramList = query.split(‘&’); for (var i=0; i < paramList.length; i++) { var param = paramList[i].split(‘=’); if(param[0] == ’email’) { var element = document.getElementById(‘user_login’); if (element) { element.value = decodeURIComponent(param[1]); } } } I used the browser inspector console to test it out quickly and debug … Read more
Passing object to FormTokenField suggestions
Found the answer here – Unable to get the info of the user which doesn’t have created any post via REST API It is very weird – would’ve never thought of this.
How to delete child block for associated parent block
How to load JavaScript modules with script_loader_tag hook?
Where to include JS library in gutenberg blocks
The answer for me was setting the X-WP-Nonce with the wpApiSettings.nonce in the headers.
Rather than trying to include jquery with your javascript, you should use wordpress to define jQuery as a dependency to your custom script. function custom_js_script_enqueue(){ wp_enqueue_script( ‘mycustomjs’, CHILD_THEME_URI . ‘/assets/js/my-custom-js.js’, array(‘jquery’), ‘1.0.0’ ); } add_action(‘wp_enqueue_scripts’, ‘custom_js_script_enqueue’); you can read about all of the libraries available in wordpress here. Your script should not include the jquery … Read more