Support » Fixing WordPress » Search results overshooting margin

  • Resolved daiver


    I just installed a new theme called Rin. Everything seems to work fine, however when I search for something, the results completely overshoot the right margin of the page. This creates a horizontal scrollbar which is really not good.

    Anyone know whats up? Site is at


Viewing 5 replies - 1 through 5 (of 5 total)
  • Anyone?

    The reason is that the result is wrapped in pre tags, which really shouldn’t be used here. A p element would be better. So you need to find out what is putting the pre tags there, and change that. It’s probably in the search.php template.

    Alternatively, use a better (coded) theme…

    Here’s what search.php has:

    <?php get_header(); ?>
    <div id=”container”>
    <div id=”topcontent”></div>
    <div id=”singlecontent”>
    <div class=”singlepost”>
    <?php if (have_posts()) : ?>
    <h2 class=”searchresult”>Search Results</h2>
    <div class=”searchdetails”> Search results for “<?php echo “”.”$s”; ?>” </div>
    <?php while (have_posts()) : the_post(); ?>
    <h2 class=”searchresult”>
    ” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”>
    <?php the_title(); ?>

    <div class=”searchinfo”><?php _e(“(“); ?> <?php the_category(‘ and’) ?> <?php _e(“)”); ?></div>
    <div class=”clearer”> </div>
    <?php the_excerpt() ?>
    <div class=”searchinfo”>
    ” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”>(to view associated entry please click here)

    <?php endwhile; ?>
    <?php else : ?>
    Not Found
    <?php endif; ?>
    </div> <!– closes post div –>
    <div class=”postnavigation”>
    <div class=”right”>
    <?php posts_nav_link(”,”,’previous posts + »’) ?>
    <div class=”left”>
    <?php posts_nav_link(”,’« + newer posts ‘,”) ?>
    <div id=”bottomcontent”> </div>
    </div> <!– closes content div –>
    </div> <!– closes container div –>
    <?php get_footer(); ?>

    I can’t seem to find it. This template is very good, excepto for this little thing that’s causing me a headache.

    Is it from the markdown plugin?

    Aha! That did it. I deactivated Markdown, whatever that is, and it was instantly fixed. Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Search results overshooting margin’ is closed to new replies.