Stop wordpress from requesting external jquery from googleapi

WordPress doesn’t use externally hosted jQuery. In fact, as far as I’m aware, WordPress core does not register any externally hosted scripts. WordPress bundles its own version of jQuery, and you can enqueue the bundled version by just enqueueing the handle jquery: wp_enqueue_script( ‘jquery’ ); Or by specifying ‘jquery’ as a dependency: wp_enqueue_script( ‘my-script’, ‘/path/to/my-script.js’, … Read more

wp-admin send 404 error

…what @sally_CJ said in the comment to your question. In general, if a plugin is causing problems, then remove the plugin. If you can’t do that with admin/plugins, then use your hosting File Manager or FTP to rename that plugin’s folder, which will effectively disable it. Also, ensure that PHP is at least version 7.2, … Read more

Change text string in a plugin

You are able to change texts using a translation file. By default, plugin texts are in the English language. Even your site language is English, You are able to generate a new language file and change texts on it. Imagine that the plugin folder name (plugin slug, plugin text domain) is my-plugin and Your site … Read more

Loop in elementor custom widget not working

I would recommend switching to a standard post loop: $args = [ ‘posts_per_page’ => 12, ‘category_name’ => ‘featured’, ‘orderby’ => ‘post_date’, ‘order’ => ‘ASC’, ]; $query = new \WP_Query($args); if ( $query->have_posts() ) { while ( $query->have_posts() ) { $query->the_post(); ….. } \wp_reset_postdata(); } Note that I: switched to modern PHP array syntax of [] … Read more

UTF-32be error WordPress

This means the file is encoded in UTF-32, an encoding that PHP doesn’t support. Open the file in a text editor that does support it, and convert it to UTF-8 without BOM. You should also check the other files in that plugin and contact the author to make them aware of the problem.

Disable globally “Crop thumbnail to exact dimensions (normally thumbnails are proportional)” with Multisite

To disable cropping, insert this below code in disable-automatic-image-crop.php file in your mu-plugins folder: <?php /* Plugin Name: Disable Automatic Image Crop Author: WordPress Community Description: https://gist.github.com/czenzel/0f5888cbbfa4a857e56361dd3bc19b39 */ add_action( ‘init’, ‘czc_disable_extra_image_sizes’ ); add_filter( ‘image_resize_dimensions’, ‘czc_disable_crop’, 10, 6 ); function czc_disable_crop( $enable, $orig_w, $orig_h, $dest_w, $dest_h, $crop ) { // Instantly disable this filter after the … Read more