This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'genesis_before_loop', 'childtheme_welcome_widget' ); | |
function childtheme_welcome_widget() { | |
dynamic_sidebar( 'Home Welcome' ); | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* Add the featured image after post title | |
------------------------------------------------------------ */ | |
add_action( 'genesis_before_post_title', 'jm_portfolio_grid' ); | |
function jm_portfolio_grid() { | |
if ( has_post_thumbnail() ){ | |
echo '<a class="alignleft" href="' . get_permalink() .'" title="' . the_title_attribute( 'echo=0' ) . '">'; | |
echo get_the_post_thumbnail($thumbnail->ID, 'thumbnail', array('class' => 'alignleft')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* Add Previous & Next Links in Genesis Single Post Page | |
------------------------------------------------------------ */ | |
add_action('genesis_after_post_content', 'genesis_post_navigation'); | |
function genesis_post_navigation() { | |
if ( is_single ( ) ) { ?> | |
<div id="prev-next"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* List Posts tagged 'thesis-tip' | |
* | |
*/ | |
function be_display_thesis_tip() { | |
$args = array( | |
'tag' => 'thesis-tip', | |
'posts_per_page' => '-1', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* Removes Wordpress Default Gallery css | |
------------------------------------------------------------ */ | |
add_filter( 'use_default_gallery_style', '__return_false' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* Move image above post title | |
------------------------------------------------------------ */ | |
remove_action( 'genesis_post_content', 'genesis_do_post_image' ); | |
add_action( 'genesis_before_post_title', 'genesis_do_post_image' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* Add image above post title | |
------------------------------------------------------------ */ | |
add_action( 'genesis_before_post', 'jm_post_image' ); | |
function jm_post_image() { | |
if ( is_page() ) return; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Don't show Events category on homepage | |
* Category 5 = Events category, so we use cat=-5 | |
* | |
* @link http://www.billerickson.net/thesis-wordpress-remove-category-homepage/ | |
* @author Bill Erickson | |
* @param object $query | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type='text/javascript' src='http://www.briangardner.com/js/backstretch.js'></script> | |
<script> | |
jQuery(document).ready(function($) { | |
$("body").backstretch(["http://www.briangardner.com/wp-content/uploads/bg.jpg"],{duration:3000,fade:750}); | |
}); | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Add custom post class to posts in the "Featured" category | |
add_filter('post_class', 'eo_custom_post_class'); | |
function eo_custom_post_class($classes) | |
{ | |
$new_class = 'featured-post'; | |
if (in_category('Featured')) | |
$classes[] = esc_attr(sanitize_html_class($new_class)); | |
return $classes; | |
} |
OlderNewer