panelarrow

CR Bridge

Club Activities

Theme Edit to Improve Archive Search Appearance

This documents changes that were made to “content.php” in the “Empo” theme.  The problem solved is that several pages of the site are category searches.  The theme used an exotic format whereby the post content was confined to 2/3 the normal width and the left third was devoted to author, category, permalink, etc.  This made the search pages very unattractive and less useful than they should be.

If the theme is ever reinstalled or updated, these changes or something similar may be warranted.

Original Code of content.php

<?php
/**
* @subpackage Empo
*/
?>

<article id=”post-<?php the_ID(); ?>” <?php post_class(); ?>>

<div class=”one_third”>
<div class=”entry-details”>
<?php if ( has_post_thumbnail() ): ?>
<a href=”<?php the_permalink(); ?>”><?php the_post_thumbnail(‘thumbnail’); ?></a>
<?php endif; ?>
<p><?php echo get_the_date(); ?><br/>
<?php _e( ‘by’, ’empo’ ); ?> <?php the_author() ?><br/>
<?php comments_popup_link( __( ‘0 comments’, ’empo’ ), __( ‘1 Comment’, ’empo’ ), __( ‘% Comments’, ’empo’ ) ); ?></p>
</div><!– end entry-details –>
</div><!– end one_third –>
<div class=”two_third lastcolumn”>

New Code of content.php

<?php
/**
* @subpackage Empo
*/
?>

<article id=”post-<?php the_ID(); ?>” <?php post_class(); ?>>
<?php/* Beginning of block I have commented out. Bob
<div class=”one_third”>
<div class=”entry-details”>
<?php if ( has_post_thumbnail() ): ?>
<a href=”<?php the_permalink(); ?>”><?php the_post_thumbnail(‘thumbnail’); ?></a>
<?php endif; ?>
<p><?php echo get_the_date(); ?><br/>
<?php _e( ‘by’, ’empo’ ); ?> <?php the_author() ?><br/>
<?php comments_popup_link( __( ‘0 comments’, ’empo’ ), __( ‘1 Comment’, ’empo’ ), __( ‘% Comments’, ’empo’ ) ); ?></p>
</div><!– end entry-details –>
</div><!– end one_third –><div class=”two_third lastcolumn”>
End of block I have commented out. The next line has been modified too. see above. Bob */?>
<div class=”single-entry-details”>