A- A+

Disable WordPress thumbnail automatic clipping function, and upload pictures automatic clipping.

October 25, 2018 Code No comment Read 1545 times

WordPress upload thumbnails, special images and pictures will be automatically proportionally clipped to multiple small images. The purpose is to adapt to image display on different devices. Most of the WordPress themes currently used are adaptive themes. This function is basically useless, and the disadvantage is that it takes up the size of space.

Disable WordPress automatic clipping function

Settings - media - image size all set to 0

If the above is not completely finished, WordPress will automatically cut a picture file with a fixed width of 768. Open WordPress God mode settings, visit http://, your domain name /wordpress/wp-admin/ Options.php In browser, press Ctrl+F to search medium_. Large_ Size_ W, change 768 to 0.

If you upload WordPress, you will no longer automatically cut pictures.

Some themes have functions of automatically trimming pictures.

According to the above method settings, upload pictures will still have automatically cut pictures, this may be because some of the theme code settings. The theme I used is "theme folder /inc/functions/post-". Thumbnails.php "In the file, there is the code setting of the auto thumbnail thumbnail, and it will be annotated.

You can download the theme file (the theme file is in the WordPress/wp-content/themes folder), download it to the local, and use the IDE editor to open all the.Php files under the theme folder, then search for "add_". Image_ Size "find it out and annotate it."

Leave a message for me.

Copyright, old madman reserves all rights.

User login

Share to: