10 stu.

Resize fotografija

https://code.tutsplus.com/tutorials/using-custom-image-sizes-in-your-theme-and-resizing-existing-images–wp-24815

add_action( 'after_setup_theme', 'setup' );
function setup() {
// ...

add_theme_support( 'post-thumbnails' ); // This feature enables post-thumbnail support for a theme
add_image_size( 'header', 600, 200, true ); // header image
add_image_size( 'custom-size1', 400, 200 ); // 400 pixel wide and 200 pixel tall, resized proportionally
add_image_size( 'custom-size2', 400, 200, true ); // 400 pixel wide and 200 pixel tall, cropped

// ...
}

Odgovori

Vaša adresa e-pošte neće biti objavljena. Obavezna polja su označena sa *