WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Search results overshooting margin (6 posts)

  1. daiver
    Member
    Posted 9 years ago #

    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 http://www.adketing.com.ar

    Thanks.

  2. daiver
    Member
    Posted 9 years ago #

    Anyone?

  3. Yngwin
    Member
    Posted 9 years ago #

    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...

  4. daiver
    Member
    Posted 9 years ago #

    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(); ?>

    </h2>
    <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)

    </div>
    <?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>
    <div class="left">
    <?php posts_nav_link('','« + newer posts ','') ?>
    </div>
    </div>
    <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.

  5. Beel
    Member
    Posted 9 years ago #

    Is it from the markdown plugin?

  6. daiver
    Member
    Posted 9 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic