• I love the strapvert theme and you can see it in action over at my site http://www.allspark.com

    I’ve done some minor modifications using a child theme but one of issues I’m having now is how it crops images dead center. I’m trying to make it use “array( ‘left’, ‘top’ ) );” so I can crop them from the top down while taking up the same amount of space but it either doesn’t work at all or it displays the images without cropping it.

    If I could get some advice on which files to modify and the code I need to input it would be very much appreciated.

    Can you help me with that?

    Thanks!

    Greg

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi I resolved this by changing the following lines in functions.php from true to array ( ‘center’, ‘top’).

    set_post_thumbnail_size( 280, 136, array( ‘center’, ‘top’ ) );
    add_image_size( ‘strapvert-featured’, 640, 300, array( ‘center’, ‘top’ ) );
    add_image_size( ‘strapvert-single’, 840, 300, array( ‘center’, ‘top’) );
    add_image_size( ‘strapvert-mini’, 50, 50, array( ‘center’, ‘top’) );

    Thread Starter Kalidor

    (@kalidor)

    Thanks for the reply. I’ve edited both the child and parent functions.php

    I know the code is doing something because when I remove it completely it’s gone.. but when I add it, even with the array, it still does a center crop.

    I’ve kind of given up on this theme due to lack of support and updates.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘How to Modify Thumbnail crop using array( 'top', 'center' ) );’ is closed to new replies.