Can I use custom CSS and js plugin to put JavaScript in to validate my forms
Can I use custom CSS and js plugin to put JavaScript in to validate my forms
Can I use custom CSS and js plugin to put JavaScript in to validate my forms
Is there a way to check for an attribute of a script when using script_loader_tag?
Populate dropdown with Child Pages based on Parent Page chosen
Block Editor: Reset Reusable Blocks to last saved record
How to disable inline css styles generated by Gutenberg editor?
The child functions.php file loads before the parent functions.php, so you’re registering them after enqueueing them. Try enqueueing the scripts on a hook, like ‘after_setup_theme’ instead.
Next to .height() and .width() there is .outerHeight() and .innerHeight() (same for width as well). You might be looking for these methods to gather the browsers size, not only the size of the windows viewport. Keep in mind that this not always works 100% across all browsers, so you always might run into problems if … Read more
Not really a WordPress related question but you could do this // creates a object from the array, one of the properies (search) contains the query let url = new URL(‘https://dev/job/?job_id=jkdbsbd45JubJKAAASSYT’); // will create a object of all availalble query properites const urlSearchParams = new URLSearchParams(url.search); const params = Object.fromEntries(urlSearchParams.entries()); // remove ? and everything … Read more
I see that you do not use register_block_type in PHP, which is now recommended way to register block. I am assuming you register block in the front-end ( I am not familiar with create-block ), and instead that I inspect create-block, would you share your front end code where you also have translation functions? It … Read more
Try and use/add the priority parameter of the hook for app.js and see if it works. add_action( ‘wp_enqueue_scripts’, ‘my_scripts’, 1 ); By default it is 10, so lets call it early and see if this works for you