Instantly share code, notes, and snippets.

View Display related posts in Genesis based on Category
View Display Related Posts in Genesis based on Tags
View Styling the related posts in Genesis Theme
View Remove Query Strings Script Version From Static Resources
function _remove_script_version( $src ){
$parts = explode( '?ver', $src );
return $parts[0];
}
add_filter( 'script_loader_src', '_remove_script_version', 15, 1 );
add_filter( 'style_loader_src', '_remove_script_version', 15, 1 );
View Edit 404 Page heading
<h1 class="entry-title">%s</h1>', __( '<span style="color: #ff0000;">Not found, error 404</span>', 'genesis' ) );
View How to Edit 404 Page Error Message:
<p><?php printf( __( 'The page you are looking for no longer exists. Perhaps you can return back to the site\'s <a href="%s">homepage</a> and see if you can find what you are looking for. Or, you can try finding it with the information below.', 'genesis' ), home_url() ); ?></p>
View How To Reduce the Number of Recent Posts in 404 Page:
<h4><?php _e( 'Recent Posts:', 'genesis' ); ?></h4>
<ul>
<?php wp_get_archives( 'type=postbypost&limit=100' ); ?>
</ul>
View Remove Featured Post on eleven40 Theme:
<?php
remove_action( 'genesis_loop', 'genesis_do_loop' );
add_action( 'genesis_loop', 'eleven40_grid_loop_helper' );
/** Add support for Genesis Grid Loop */
function eleven40_grid_loop_helper() {
if ( function_exists( 'genesis_grid_loop' ) ) {
genesis_grid_loop( array(
'features' => 0,
View How to Add Content Boxes and Color Buttons in Genesis
Add Content Boxes in Genesis:
<div class="content-box-blue">Enter your content box text here.</div>
Add Color Button in Genesis:
<a class="button-blue" href="#">Blue Button Link</a>
View Add Content Box CSS to Your Style Sheet
/* Content Boxes
------------------------------------------------------------ */
.content-box-blue,
.content-box-gray,
.content-box-green,
.content-box-purple,
.content-box-red,
.content-box-yellow {
margin: 0 0 25px;