Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #4366

    Hello, I use Display theme.

    1) When I click on Blog – I got list of post with pictures, but when I click on Categories or Tags for example, I got the text list with post titles. Can I add picture from post thumb or preview?

    2) Is it possible to remove preview picture exactly from begin of blog post body, but leave it in list of posts?

    Thank you!

    #46034

    I have also one question – is it possible to increase speed of dropdown submenu in main menu (Display theme)? Thanx!

    #46035

    Hey,

    1) In archive.php replace:

    the_excerpt();

    with:

    // check if we got a previe picture, and which one should be taken
    // (image resizing with "tim thumb" on? then we can take the big one and resize it)
    $preview_small = get_post_meta($post->ID, "_preview_small", true);
    $preview_medium = get_post_meta($post->ID, "_preview_medium", true);
    $preview_big = get_post_meta($post->ID, "_preview_big", true);

    //defaults:
    $preview = $preview_medium;
    $link_url = $preview_big;
    $lightbox = 'singlepost';
    $link = true;
    //change if necessary:

    // resizing? => take next sized picture
    if ($k_option['general']['tim'] == "1" && $preview_medium == "")
    {
    $preview = $preview_big;
    }

    // no bigpicture? => no lightbox
    if ($preview_big == "") { $lightbox = ''; $link = true; $link_url = get_permalink(); }
    // the kriesi_build_image function used here checks if the image should be resized.
    // the function is located in framework/helper_functions

    $preview = kriesi_build_image(array('url'=>$preview,
    'height'=> '273',
    'width'=> '610',
    'lightbox'=>$lightbox,
    'link'=>$link,
    'link_url'=>$link_url
    ));

    echo $preview; // echo the preview image
    the_excerpt();

    2) In single.php (and in page.php and template_fullwidth.php if you like) delete following code

    echo $preview; // echo the preview image

    3) In custom.js adjust following code line:

    $sublist.stop().css({overflow:"hidden", height:"auto", display:"none"}).slideDown(400, function()

    Increase/decrease the value “400” to adjust the speed.

    #46036

    Thank you! All works fine!

    #46037

    Glad that I could help you :)

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

The topic ‘How to add thumbnail or preview picture in categories or tags archive list?’ is closed to new replies.