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

Set site title & tagline with wp.config or function.php

These fields have the keys ‘blogname’ and ‘blogdescription’ respectively in the options table. I’m not sure exactly why you need to do this as it seems like a priority to secure your site and be able to update it through the dashboard yourself, but you can update them easily from functions.php with update_option, e.g.: update_option( … Read more

Problem migrating to localhost

As in this question and answer, and because of your huge .htaccess file it’s like you have a .htaccess directive that’s causing your apache to not process that file or understand its type. As mentioned by @Rup, using the default WordPress .htaccess, and checking other directories for rogue .htaccess files will likely resolve this issue. … Read more