Viewing 1 post (of 1 total)
  • Author
    Posts
  • #3736

    Hello,

    I’ve been having a problem getting the wrapping correctly on my posts. I’m not quite sure what the problem is but when I put text on top of pictures it doesn’t stay and it goes to the right. Also the plugin I have installed to direct users to facebook and other sites goes to the right. Can anyone help me out? here’s the link of the blog post to what I”m talking about:

    http://www.brymphotography.com/2011/03/dpk_formals2011/

    and here’s the code I’m using:

    <?php
    /*
    Template Name Posts: Full Width
    */

    $k_option['custom']['bodyclass'] = "class='fullwidth'"; //$k_option['custom']['bodyclass'] = "";
    get_header(); ?>

    <div id="main">
    <div id="content">

    <?php if (have_posts()) : while (have_posts()) : the_post(); // start loop
    // THIS PAGE CAN ONLY DISPLAY FULLWIDTH PREVIEW PICTURES (940px * 420px)

    //check if we got a previe picture, and which one should be taken (image resizing with "tim thumb" on? then we can take the big one and resize it)
    $preview_big = get_post_meta($post->ID, "_preview_big", true);
    $preview_medium = get_post_meta($post->ID, "_preview_medium", true);

    //defaults:
    $preview = $preview_big;
    $lightbox = '';
    $link = false;
    $link_url = $preview_big;

    if (!kriesi_is_file($preview_big,'image')) {$preview = $preview_medium;}

    // the kriesi_build_image function used here checks if the image should be resized.
    // the function is located in framework/helper_functions
    $preview = kriesi_build_image(array('url'=>$preview,'height'=>'900','width'=>'900','lightbox'=>$lightbox,'link'=>$link));
    ?>
    <div class='entry'>
    <center><div class="date">
    <span class='day'><?php the_time('d') ?></span>
    <span class='month'><?php the_time('M') ?></span>
    <span class='year'><?php the_time('Y') ?></span>
    </div><!-- end date -->
    <?php echo $preview; ?>
    <h2><a>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h2>
    <?php
    the_content(); ?>
    <?php edit_post_link('Edit', '', ''); ?>
    </div><!--end entry-->
    <div class='entry commententry'>
    <?php comments_template(); ?>
    </div>
    <?php endwhile;

    kriesi_pagination($query_string);
    else:
    ?>
    <div class="entry">
    <h2>Nothing Found</h2>
    <p>Sorry, no posts matched your criteria.</p>
    </div>
    <?php
    endif;
    ?>
    </div><!-- end content -->

    </div><!--end main-->

    <?php get_footer(); ?>

Viewing 1 post (of 1 total)

The topic ‘Make Text Go on Top of Pictures?’ is closed to new replies.