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)

How to Remove Thumbnail

Home Forums Free Theme Support Zenon Lite How to Remove Thumbnail

  • #59069

    Bom

    Hey, there this template is so amazing. I love it and I want to ask, how to remove the thumbnail that appears in homepage. Thank you very much.

    #59074

    Towfiq I.

    administrator

    Open up layout1.php and remove this:

    <div class="post_image">
                         <!--CALL TO POST IMAGE-->
                        <?php if ( has_post_thumbnail() ) : ?>
                        <div class="imgwrap">
    
                            <div class="date_meta"><?php the_time('d'); ?><?php the_time('S'); ?> <?php the_time('M'); ?></div>
                            <div class="block_comm"><?php if (!empty($post->post_password)) { ?>
                    <?php } else { ?><div class="comments"><?php comments_popup_link( __('0</br>Comment', 'zenon'), __('1</br>Comment', 'zenon'), __('%</br>Comments', 'zenon'), '', __('Off' , 'zenon')); ?></div><?php } ?></div>
    
                            
                        <a href="<?php the_permalink();?>"><?php the_post_thumbnail('medium'); ?></a></div>
                        
                        <?php elseif($photo = znn_get_images('numberposts=1', true)): ?>
        
                        <div class="imgwrap">
    
                            <div class="date_meta"><?php the_time('d'); ?><?php the_time('S'); ?> <?php the_time('M'); ?></div>
                            <div class="block_comm"><?php if (!empty($post->post_password)) { ?>
                    <?php } else { ?><div class="comments"><?php comments_popup_link( __('0</br>Comment', 'zenon'), __('1</br>Comment', 'zenon'), __('%</br>Comments', 'zenon'), '', __('Off' , 'zenon')); ?></div><?php } ?></div>
    
                            
                    	<a href="<?php the_permalink();?>"><?php echo wp_get_attachment_image($photo[0]->ID ,'medium'); ?></a></div>
                    
                        <?php else : ?>
                        
                        <div class="imgwrap">
    
                            <div class="date_meta"><?php the_time('d'); ?><?php the_time('S'); ?> <?php the_time('M'); ?></div>
                            <div class="block_comm"><?php if (!empty($post->post_password)) { ?>
                    <?php } else { ?><div class="comments"><?php comments_popup_link( __('0</br>Comment', 'zenon'), __('1</br>Comment', 'zenon'), __('%</br>Comments', 'zenon'), '', __('Off' , 'zenon')); ?></div><?php } ?></div>
    
                            
                        <a href="<?php the_permalink();?>"><img src="<?php echo get_template_directory_uri(); ?>/images/blank_img.png" alt="<?php the_title_attribute(); ?>" class="znn_thumbnail"/></a></div>   
                                 
                        <?php endif; ?>
                    </div>

You must be logged in to reply to this topic.