Forums

[resolved] How do you place Text to the Right of Thumbnail (4 posts)

  1. imeancomeonjoe
    Member
    Posted 2 years ago #

    Website: http://www.joshmadden.com

    I need help getting my text to the right of the smaller thumbnails. Initially it was set up as two columns but what i did was change the width of the .post to 450 in order to push the other thumbnails down. Now my question is how to get the text to the right of the thumbnails ie: http://www.hypebeast.com

    here is the code where i think the changes might occur:

    <div class="post">

    <?php
    $thumb = get_post_meta($post->ID, 'thumb', true);
    if ($thumb == '')
    { ?>

    "><img src="<?php bloginfo('template_directory'); ?>/images/thumb.png" alt="<?php the_title(); ?>" width="200" height="130" />

    <?php } else { ?>

    "><img src="<?php bloginfo('template_directory'); ?>/thumb.php?src=<?php echo get_post_meta($post->ID, "thumb", $single = true); ?>&h=130&w=200&zc=1" alt="<?php the_title(); ?>" width="200" height="130" />

    <?php } ?>

    <class="meta"><class="time"><?php the_time('F j'); ?>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<class="comment"><?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></p>

    <h1>"><?php the_title(); ?></h1>

    <?php content('25'); ?>

    <p class='more'>">More...</p>

    </div>

  2. Rev. Voodoo
    Volunteer Moderator
    Posted 2 years ago #

    it's far easier for us to read posted code when put in between backticks.....

  3. imeancomeonjoe
    Member
    Posted 2 years ago #

    <div class="post">
    
    <?php
    $thumb = get_post_meta($post->ID, 'thumb', true);
    if ($thumb == '')
    { ?>
    
    "><img src="<?php bloginfo('template_directory'); ?>/images/thumb.png" alt="<?php the_title(); ?>" width="200" height="130" />
    
    <?php } else { ?>
    
    "><img src="<?php bloginfo('template_directory'); ?>/thumb.php?src=<?php echo get_post_meta($post->ID, "thumb", $single = true); ?>&h=130&w=200&zc=1" alt="<?php the_title(); ?>" width="200" height="130" />
    
    <?php } ?>
    
    <class="meta"><class="time"><?php the_time('F j'); ?>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<class="comment"><?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></p>
    
    <h1>"><?php the_title(); ?></h1>
    
    <?php content('25'); ?>
    
    <p class='more'>">More...</p>
    
    </div>
  4. imeancomeonjoe
    Member
    Posted 2 years ago #

    Thanks for the heads up.. i'm new at this.

Topic Closed

This topic has been closed to new replies.

About this Topic