• Resolved daiver

    (@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 https://www.adketing.com.ar

    Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter daiver

    (@daiver)

    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…

    Thread Starter daiver

    (@daiver)

    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.

    Is it from the markdown plugin?

    Thread Starter daiver

    (@daiver)

    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.