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
//Alphabetize the products | |
function modify_query_order( $query ) { | |
$cat = the_category_ID($echo=false); | |
if (is_category(8) || cat_is_ancestor_of(8,$cat)){ | |
global $query_string; | |
query_posts($query_string."&order=ASC&orderby=title"); | |
} | |
} |
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
//* Jump to message on Gravity Forms | |
add_filter(“gform_confirmation_anchor”, create_function(“”,”return true;”)); |
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 featured image and link | |
$image = genesis_get_image( array( | |
'format' => 'html', | |
'size' => 'SET_SIZE_HERE', | |
) ); | |
printf( '<a href="%s" title="%s" >%s</a>', get_permalink(), the_title_attribute( 'echo=0' ), $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
add_action ('genesis_before_entry','add_image_before_title'); | |
add_action ('genesis_before_post_title','add_image_before_title'); | |
function add_image_before_title(){ | |
if (is_category() && has_post_thumbnail()){ | |
//* Add featured image and link | |
$image = genesis_get_image( array( | |
'format' => 'html', | |
'size' => 'thumbnail', | |
'attr' => 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
//* Scroll to message on Gravity Forms | |
add_filter("gform_confirmation_anchor", create_function("","return true;")); |
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_action('genesis_before_loop','remove_info'); | |
function remove_info(){ | |
if (in_category(ADD_CATEGORY_NUMBER_HERE)){ | |
//This removes the author, date, etc. at the top of the post | |
remove_action( 'genesis_entry_header', 'genesis_post_info', 12 ); | |
//This removes the categories and tags at the bottom of the post | |
remove_action( 'genesis_entry_footer', 'genesis_post_meta' ); | |
} | |
} |
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
// Edit the read more link text | |
add_filter('get_the_content_more_link', 'custom_read_more_link'); | |
add_filter('the_content_more_link', 'custom_read_more_link'); | |
function custom_read_more_link() { | |
return ' <a class="more-link" href="' . get_permalink() . '">Keep Reading …</a>'; | |
} |
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_image_size( 'featured-top', 750, 500, TRUE ); | |
add_action ('genesis_before_loop','add_top_image'); | |
function add_top_image(){ | |
if (is_page() || is_single()){ | |
the_post_thumbnail('featured-top',array('class'=>'top-of-post')); | |
} | |
} | |
// Use this one if it's full width and needs to be a background 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
add_theme_support( 'custom-header', array( | |
'width' => 541, | |
'height' => 200, | |
'header-text' => false, | |
'header-selector' => '.site-title a' | |
) | |
); |
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
update_option('image_default_link_type','none'); |
OlderNewer