WordPress.org

Forums

upTown
[resolved] [upTown Child] how can I move the thumbnail to the left? (8 posts)

  1. Novicenelly
    Member
    Posted 1 year ago #

    I've been wracking my brain trying to figure out how to simply align the thumbnail from the to the left, instead of the right. I have tried the usual tricks including "'alignleft' in content.php and float:left in style.css.

    My site is alyssamorrisey.com. Here is the code from content.php

    <?php if( has_post_thumbnail() ) { ?>
    	    <div class="entry-image">
    	    	<a href="<?php the_permalink(); ?>">
    	    		<?php the_post_thumbnail( 'post-thumbnail', array( 'alt' => get_the_title(), 'title' => get_the_title() ) ); ?>
    	    	</a>
    	    </div>
    	<?php } ?>
  2. Andrew
    Forum moderator
    Posted 1 year ago #

    Let's see the webpage in question

  3. Novicenelly
    Member
    Posted 1 year ago #

  4. Andrew
    Forum moderator
    Posted 1 year ago #

    On that page which thumbnail are you referring to?

  5. Novicenelly
    Member
    Posted 1 year ago #

    Post thumbnails on the homepage, archive pages, search pages...

  6. Andrew
    Forum moderator
    Posted 1 year ago #

    At the bottom of your Child Theme style.css file add;

    .blog .entry-image,
    .search .entry-image,
    .archive .entry-image {
     float: left;
     margin-left: 0;
     margin-right: 35px;
    }
  7. Novicenelly
    Member
    Posted 1 year ago #

    At first I thought it didn't work, then I realized that I forgot to press save! The thumbnails are now on the left. Thanks very much!

  8. Novicenelly
    Member
    Posted 1 year ago #

    Thanks sooo much!

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic