Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi

    If you added images size after uploading images you need to regenerate thumbnails of images, use regenerate-thumbnails plugin.

    But if you uploaded image after adding image sizes and its not resizing, check the size of the image, it should be greater than 128×128.

    Where to you add that code exactly? What particular file?

    Thread Starter jereader

    (@jereader)

    menu-image/menu-image.php

    Go to plugins > editor

    oh, don’t hack the core and plugins!

    Please, read documentation.

    A theme’s functions.php file. `
    if ( function_exists( ‘add_image_size’ ) ) {
    add_image_size( ‘category-thumb’, 300, 9999 ); //300 pixels wide (and unlimited height)
    add_image_size( ‘homepage-thumb’, 220, 180, true ); //(cropped)
    }
    `

    Thread Starter jereader

    (@jereader)

    I plan to reuse this plugin in other sites with different themes, so for me it makes sense to mod the plugin so I don’t have to keep adding the function to themes over and over, but yes, for single use, that would be the correct way to do it. Thanks zviryatko.

    Have you thought about releasing a premium version with more features?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Adding other image sizes’ is closed to new replies.