• Hello there,

    My theme uses featured images on homepage. Here is my problem;

    It cuts featured images instead of resize them. I will show you an example then yo will see clearly what i complain about.

    http://i.imgur.com/gpMIKen.jpg

    I have been trying to find out how to change that in functions.php but no chance. Could you help me please?

Viewing 6 replies - 1 through 6 (of 6 total)
  • What theme are you using? Where did you download it from?

    Thread Starter sukrucan

    (@sukrucan)

    prefer not to say which theme i am using,

    here i paste the related code area from functions.php hope someone can help me

    if ( function_exists( 'add_image_size' ) ) {
    
    		foreach ( $st_Options['global']['images'] as $key => $value ) {
    
    			if ( $st_Options['global']['images'][$key]['status'] ) { 
    
    				// Normal size
    				$st_['width'] = $st_Options['global']['images'][$key]['width'];
    				$st_['height'] = $st_Options['global']['images'][$key]['height'];
    				$st_['crop'] = $st_Options['global']['images'][$key]['crop'] ? true : false;
    
    				add_image_size( $key, $st_['width'], $st_['height'], $st_['crop'] );
    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Your theme’s forums are here: https://www.simplethemes.com/support

    Thread Starter sukrucan

    (@sukrucan)

    if i change “crop” to “resize” will it be ok ?

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Who knows what the global array $st holds. If you don’t know and then you change its “crop” property to “resize” then you could crash your website leading in an error of “undefined index”.

    Why don’t you try Photoshop and resize the images to the recommended size?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Theme cuts featured images, how to resize?’ is closed to new replies.