• Resolved rosyb

    (@rosyb)


    thanks for the great plugin, and my question relates to my incompetence rather than a problem with the plugin!
    I am wanting to resize the thumbnails so that they are rectangular (same ratio as the featured images used for the slider) rather than square, plus slightly larger.
    I’ve looked at the wordpress codex as you recommend in the faq, but am still struggling. Any suggestions? Thanks

    http://wordpress.org/extend/plugins/promotion-slider/

Viewing 1 replies (of 1 total)
  • Plugin Author Micah Wood

    (@woodent)

    It sounds like you will need to define your own custom image size: http://codex.wordpress.org/Function_Reference/add_image_size

    Once you add an image size, use the promoslider_image_size filter to use your image size. Here is the description of the filter from the plugin documentation:

    promoslider_image_size – This filter allows you to change the default image size in the slider. The default value is the string ‘full’. The value passed through this filter is directly applied to the $size argument in the get_the_post_thumbnail() function. See the WordPress codex for more information on acceptable values and functionality.

    So if you created an image size called mySize, this is the way you would use the filter:

    add_filter( 'promoslider_image_size', 'custom_image_size_function' );
    
    function custom_image_size_function( $image_size ) {
        return 'mySize;
    }

    If you have already uploaded images to your promotions, you will probably have to regenerate your image sizes. This plugin should do the trick: http://wordpress.org/extend/plugins/regenerate-thumbnails/

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Promotion Slider] resizing thumbnails’ is closed to new replies.