Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #2676

    I have a question you expect prompt help! I want to show big preview pic for posts on the homepage (gallery) http://img87.imageshack.us/img87/1763/90112477.png , but it will not show up in Single Post (featured image) http://img513.imageshack.us/img513/162/75412324.png . How can I do that? thanks …

    #38887

    Hey,

    I’m not sure I understand your issue.

    Could you elaborate?

    James

    #38888

    Hi James!

    yes, I do not want this image is shown in Single Post http://img816.imageshack.us/img816/2949/71503150.png. I do not know how?

    #38889

    Hey,

    delete following code from single.php – this should remove the featured image:

    $prev_image_link = get_post_meta($post->ID, "_prev_image_link", true);

    if($prev_image_link == 'none' || $prev_image_link == 'lightbox')
    {
    $prev_image_link = array($prev_image_link);
    }
    else
    {
    $prev_image_link = '_external';
    }

    if(!$gallerypage) $prev_image_link = array('lightbox');

    //get preview image
    $big_prev_image = kriesi_post_thumb($post->ID, array('size'=> array('L'),
    'wh' => $k_option['custom']['imgSize']['L'],
    'display_link' => $prev_image_link,
    'linkurl' => array ('XL','_preview_big')
    ));

    echo $big_prev_image;

    #38890

    That great! Thanks Dude!!!

    #38891

    Glad that I could help you :)

    #38892

    Can you remove the featured image from pages, but not from posts? Or from some pages or posts via ID?

    #38893

    I’m using newscast, btw; not sure the instructions above work for that. Would like to know how to remove the thumbnail image on certain posts or pages, or on all if that’s not possible, in newscast. Thanks!

    #38894

    I’m answering this question on my own. In newscast, to remove the preview image from a page, delete the following from page.php:

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

    ‘display_link’ => ‘_prev_image_link’,

    ‘linkurl’ => array (‘fullsize’,’_preview_big’),

    ‘wh’ => $k_option

    ));

    To delete the preview image from all posts, delete the following from single.php:

    $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

    ));

    To do this from particular posts or pages is beyond my abilities, perhaps someone will answer that someday.

    #38895

    Hey,

    Glad you got this resolved on your own, let us know if you have any other questions. :)

    James

    #38896

    It took me an hour to track down this answer, find the code and get this done. So many themes have this built in to the features. Wish Newscast had this and lots of other features (like easy to change background images, etc).

    Thanks for the answer though!

    #38897

    Hi tcatsull,

    Glad that this thread helped you. :)

    Cheers,

    Ismael

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

The topic ‘How to hide featured image in Single Post pages?’ is closed to new replies.