Is there any way for me to standardize the code that’s in my theme so that it conforms and has the missing class of “post” that you mentioned?
Here is the code from Search.php (I can also provide the code from Searchform.php if needed):
<?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() ?>
Here is the code that is in the header:
<div id="mainmenu">
<div class="container">
<div id="togglemenu"><a href="#">Browse or search website</a></div>
<nav>
<?php
if (has_nav_menu('main-menu')) {
wp_nav_menu(array('theme_location' => 'main-menu', 'container' => '', 'menu_class' => 'sf-menu'));
} else {
?>
<ul class="sf-menu">
<?php wp_list_pages('title_li='); ?>
</ul>
<?php } ?>
<?php include (TEMPLATEPATH . '/searchform.php'); ?>
</nav>
</div>
</div>
</header>