Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #3732

    hi

    i know this has been asked a few times eg http://www.kriesi.at/support/topic/different-thumbnailsize-on-indexphp-archivephp-then-singlephp

    but i just wanted to clarify the difference between feature image post sizes of the mainpage or archives from the single page.

    i want to keep featured images on the mainpage and archives at 180px (im talking about the larger posts not the 2 column posts) but i when a person clicks on a post i want the single post featured image to be 100% width of the left column eg 560px or so.

    in the functions.php it looks like i need to change the following

    $k_option = array(‘width’=>180, ‘height’=>180); // big preview pic for full sized posts

    from this code it appears that the 180px size affects both the mainpage, archives and single page posts.

    is there a way to achieve what im asking? i supposed its a bit like what happens in the habitat theme where single page posts have a larger featured image than in the archive or the mainpage…

    thanks

    #43498

    Hey,

    you can define new thumbnail sizes wif yo like. Just duplicate the ciode you posted above and replace the letter “M” with another one (i.e. “O”). The open up the template where you want to change the thumbnail size and replace the letter M with your letter in following code:

    $preview_image = kriesi_post_thumb($post->ID, array('size'=> array('M'),
    'display_link' => array('lightbox'), // '_prev_image_link' or array('lightbox')
    'linkurl' => array ('fullscreen','_preview_big'),
    'wh' => $k_option['custom']['imgSize']['M']
    ));

    #43499

    thanks for that. i will give it a try

    will the regenerate thumbnails plugin work for this type of thing for images already imported? i havent used it yet

    also, is it possible to make newscast have the featured image above the content and sidebar like in the habitat theme for a single page?

    like this site http://www.gesundheitsfocus.net/private-krankenversicherung-wann-sich-ein-wechsel-lohnt-71783

    #43500

    hmm this doesnt seem to be working for me

    i change single.php to

    $preview_image = kriesi_post_thumb($post->ID, array(‘size’=> array(‘ML’),

    ‘display_link’ => array(‘lightbox’), // ‘_prev_image_link’ or array(‘lightbox’)

    ‘linkurl’ => array (‘fullscreen’,'_preview_big’),

    ‘wh’ => $k_option

    ));

    and function.php to

    $k_option = array(‘width’=>560, ‘height’=>320); // single post image

    made a test post with a new uploaded image of some geese

    http://cityfarmperth.org.au/category/news/

    the thumbnail has stayed the same size.

    #43501

    actually dont worry about it, i think i might just delete the preview image and add them manually.

    thanks

    #43502

    Ok :)

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

The topic ‘change featured image for single post view’ is closed to new replies.