WordPress Tweaks: Difference between revisions

Created page with "Disabling unnecessary or unneeded functionality: https://design2seo.com/blog/web-development/wordpress/disabling-unused-wordpress-features/ Change the allowable image upload size in a Child Theme's functions.php file;<syntaxhighlight lang="text"> function new_srcset_max($max_width) { return 16384; } add_filter('max_srcset_image_width', 'new_srcset_max'); </syntaxhighlight>When WordPress creates "Thumbnails" (AKA Alternative Image Sizes (AIS(s)), the default quality..."
 
mNo edit summary
Line 1: Line 1:
Disabling unnecessary or unneeded functionality: https://design2seo.com/blog/web-development/wordpress/disabling-unused-wordpress-features/
Disabling unnecessary or unneeded functionality: https://design2seo.com/blog/web-development/wordpress/disabling-unused-wordpress-features/


Change the allowable image upload size in a Child Theme's functions.php file;<syntaxhighlight lang="text">
Change the allowable image size put in an HTML SRCSET Attribute size (of course 16384 is a fairly large screen) setting into a Child Theme's functions.php file;<syntaxhighlight lang="text">
function new_srcset_max($max_width) {
function new_srcset_max($max_width) {
     return 16384;
     return 16384;