Theme Support Forum

Support Forum for Free and Premium Themes. Premium Theme Forums are Private! Please log in first to see the Premium forums

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

Remove small post images

Home Forums Free Theme Support Zenon Lite Remove small post images

  • #40398

    Viktor Zika

    Hi,
    I wonder what I can do to have the small post images/thumbnails removed. The ones that show in the “latest posts” widget for instance.
    Thank you in advance!

    #40400

    Towfiq I.

    administrator

    open up widgets.php from “lib/includes/” folder and remove this code chunk(appear 3 times. remove all of them):

    		echo '<a class="znn_wgt_thumb" href="' . get_permalink(get_the_ID()) . '" title="' . get_the_title() . '">';
    		if ( has_post_thumbnail() ) :
    		echo ''. the_post_thumbnail('thumbnail') . '';
    		elseif($photo = znn_get_images('numberposts=1', true)):
    		echo ''. wp_get_attachment_image($photo[0]->ID , $size='thumbnail') . '';
    		else :
    		echo '<img src="'.get_template_directory_uri().'/images/blank_img2.png" alt="'.get_the_title().'" class="thumbnail"/>';
    		endif;
    		echo '</a>';

You must be logged in to reply to this topic.