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 ...
How to hide featured image in Single Post pages?
12 posts from 6 voices-
Posted 2 years ago #
-
Hey,
I'm not sure I understand your issue.
Could you elaborate?
James
Posted 2 years ago # -
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?Posted 2 years ago # -
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;Posted 2 years ago # -
That great! Thanks Dude!!!
Posted 2 years ago # -
Glad that I could help you :)
Posted 2 years ago # -
Can you remove the featured image from pages, but not from posts? Or from some pages or posts via ID?
Posted 2 years ago # -
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!
Posted 2 years ago # -
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['custom']['imgSize']['M']
));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['custom']['imgSize']['M']
));To do this from particular posts or pages is beyond my abilities, perhaps someone will answer that someday.
Posted 2 years ago # -
Hey,
Glad you got this resolved on your own, let us know if you have any other questions. :)
James
Posted 2 years ago # -
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!
Posted 4 months ago # -
Hi tcatsull,
Glad that this thread helped you. :)
Cheers,
IsmaelPosted 4 months ago #
Reply
You must log in to post.














