Search Results Page Jumbled
-
Hi everyone,
The search results page for my website is terribly jumbled (search is currently disabled, because I am running an adwords campaign and can’t afford to have the unappealing search results displayed).
I have been advised that I am missing a class of “post” on the search results page, but I have no clue how to fix that. Does anyone have suggestions on how I can fix this – or alternative code I can use – that will allow search results page to render normally?
Here is the code from Search.php
<?php get_header() ?> <div class="row"> <!-- content --> <div id="content" class="column ninecol"> <?php if (have_posts()) : ?> <?php switch_breadcrumbs(); ?> <?php while (have_posts()) : the_post(); ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <?php $format = get_post_format(); if (false === $format) $format = 'standard'; ?> <?php get_template_part('content', $format); ?> </article> <?php endwhile; ?> <?php switch_content_nav(); ?> <?php else : ?> <article id="post-0" <?php post_class() ?>> <header> <h1 class="entry-title"><?php _e('Nothing Found', 'switch'); ?></h1> </header> <div class="entry-content"> <p><?php _e('Sorry, but no entries matched your search criteria. Please make sure all words are spelled correctly or try again with some different keywords.', 'switch' ); ?></p> </div> </article> <?php endif; ?> </div> <!-- /content --> <?php get_sidebar() ?> </div><!-- /row --> <?php get_footer() ?>
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Search Results Page Jumbled’ is closed to new replies.