Disable stored tags queries in admin page when posting a new post
Disable stored tags queries in admin page when posting a new post
Disable stored tags queries in admin page when posting a new post
Jquery not working on mobile browser
Yes – it works fine with BS4 – no conflicts, no issues. Simple way to test is to install a vanilla WP 5.3.3, create a barebones theme with BS 4 and check the JS console for issues.
You need to “subscribe” to changes (see this issue) with wp.data.subcribe. A more modern version would have you use useSelect() to get the blocks. It will automatically update blocks if it changes (i.e. it will first return null, then an array of blocks once the API request completes). import { useSelect } from ‘@wordpress/data’; const … Read more
You need to enqueue your script at certain points. Rather than just placing the wp_enqueue_script call inside your dashboard widget function, you need to place it in a separate function and hook on to the proper action. So: function add_jquery_to_my_widget() { wp_enqueue_script( ‘jquery’ ); } add_action( ‘init’, ‘add_jquery_to_my_widget’ );
Rather than me solve your problem may I suggest you consider using the more WordPress standard method of AJAX? WordPress Codex: AJAX WordPress Codex: AJAX in Plugins How to manage ajax calls and JSON in WordPress How to Implement Ajax in WordPress Themes If you have follow up questions let us know.
The latest release updates the jquery and some plugins had issues with that, you can always upload the older version in the wp-includes directory. I took a sneak peek in the code and the following snippet should be the culprit. function ngg_ajax_test_head_footer() { // Build the url to call, NOTE: uses home_url and thus requires … Read more
If you’ll be using jQuery in your theme you need to “enqueue” it. If you do not need the JS , ie if you do not run custom jQuery plugins, you don’t need to “enqueue” it via wp_enqueue_script
This follow-up no longer seems to fit here in WordPress Answers, but here’s what I think: Close button works fine for me on all thumbnails (Chrome 16 on Mac); The thumbnails which did not work need to be <a class=”fancybox”…, which they weren’t; You can probably try a CSS-only alternative for hiding scrollbars, which is … Read more
What Theme are you using? Your question is entirely Theme-dependent, so specific answers will requiring knowing what Theme you use. (Also, it would be helpful to know if any of your Plugins are injecting scripts.) The answer really depends on how those scripts and scripts are called. If they are called properly, they are registered … Read more