Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #8636

    How can I keep aspect ratio with a fix heigt on single posts?




    image sizes can be set in your functions.php on these lines

    $k_option['custom']['imgSize']['base'] = array('width'=>267, 'height'=>180); 	// backend preview size, if changed does not affect the frontend
    $k_option['custom']['imgSize']['S'] = array('width'=>60, 'height'=>60); // small preview pics, eg for sidebar news
    $k_option['custom']['imgSize']['M'] = array('width'=>180, 'height'=>135); // small preview pic for posts
    $k_option['custom']['imgSize']['L'] = array('width'=>610, 'height'=>260); // big preview pic for posts
    $k_option['custom']['imgSize']['XL'] = array('width'=>884, 'height'=>390); // big images for fullsize pages

    If you could be a little more specific about what exactly you want to do, and maybe provide a quick screenshot I can give detailed instructions.


    We want to set image size setting only height. Width can be auto (keeping aspect ratio of original image)


Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Aspect ratio on single’ is closed to new replies.