PHP HTML CSS JS
Click to copy

Paste into your child theme's functions.php file

/**
 * Overwrite default image sizes added by the MD theme.
 */
function md_child_theme_image_sizes( $sizes ) {
	$sizes['md-banner'] = array(
		'width' => 1000,
		'height' => 500
	);
	return $sizes;
}
add_filter( 'md_filter_image_sizes', 'md_child_theme_image_sizes' );
Click to copy
Click to copy
Click to copy

Change Default MD Image Sizes

MD comes with a set of image sizes that are used to size certain images around your site, like the featured image for example. You can change the image size pixel values of those sizes with the convenient md_filter_image_sizes.

Here are the default image sizes in MD:

	$sizes = array(
		'md-full' => array(
			'width'  => 1118,
			'height' => 350
		),
		'md-banner' => array(
			'width'  => 600,
			'height' => 250
		),
		'md-image' => array(
			'width'  => 325,
			'height' => 425
		),
		'md-thumbnail' => array(
			'width'  => 80,
			'height' => 80
		)
	);

MD Update in Progress

The new private MD account area is currently being rolled out—follow the beacon to login and see what's new!

Labs

Get the latest MD sent straight to your inbox

There's always something new in the works in the MD Labs! Join the email list to get the newest content and releases sent straight to your inbox.*

Join the MD Newsletter

* I only email you when there's something new, or to share an exciting MD sneak peak.