• Resolved david.reynolds

    (@davidreynolds)


    On our homepage, every post has a big blank image next to it (because we aren’t using images in posts). How can I remove these images?

    Thanks for your help!
    David

Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author Asmi Khalil

    (@asmi1)

    Hi David! thanks for using my theme RedWaves lite!

    Simply remove this block of code:

    <div class="post-img small-post-img">
    			<?php if ( has_post_thumbnail() ) : ?>
    			<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
    			<?php the_post_thumbnail('smallfeatured'); ?>
    			</a>
    			<?php else : ?>
    			<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
    			<img width="298" height="248" src="<?php echo get_template_directory_uri() . '/images/nothumb-298x248.png'; ?>" class="attachment-featured wp-post-image" alt="<?php the_title_attribute(); ?>">
    			</a>
    			<?php endif; ?>
    		</div>

    or (if you are displaying Big featured images instead):

    <div class="single_featured">
    				<?php if ( has_post_thumbnail() ) : ?>
    				<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
    				<?php the_post_thumbnail('big'); ?>
    				</a>
    				<?php else : ?>
    				<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
    				<img width="666" height="333" src="<?php echo get_template_directory_uri() . '/images/nothumb-666x333.png'; ?>" class="attachment-featured wp-post-image" alt="<?php the_title_attribute(); ?>">
    				</a>
    				<?php endif; ?>
    			</div>

    from these files: content.php, content-search.php

    Now to remove thumbnails from “Related Posts” remove this block of code from functions.php (line 904 & line 462)

    <div class="relatedthumb">
    <a>" rel="bookmark" title="<?php the_title_attribute(); ?>">
    <?php the_post_thumbnail('small'); ?>
    </a>
    </div>

    You could use CPanel’s Code Editor, WordPress Editor under Appearance or FTP to edit these files.

    Sorry for the late response! if problem solved please set this topic to Solved

    If you still need help, please create a new topic at our Support Forum.

    Regards!

    Thread Starter david.reynolds

    (@davidreynolds)

    Thanks, Asmi!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove Image from Posts on Homepage’ is closed to new replies.