Change Image sizes
-
Hello,
I’ve added an new image size like this:
add_filter( ‘menu_image_default_sizes’, function($sizes) {
// add a new size
$image_sizes[‘menu-95×95’] = array(95,95);
// return $sizes (required)
return $sizes;
});And it works really – your plugin is excellent!
But when I turn debug on (its a dev site) I get this error:Notice: Undefined offset: 2 in /home/greystea/public_html/greytea/wp-content/plugins/menu-image/menu-image.php on line 128
– can you help please?
Thanks
Guy
The topic ‘Change Image sizes’ is closed to new replies.