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
//* 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_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'); |
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_filter('image_size_names_choose', 'my_new_image_sizes'); | |
function my_new_image_sizes($sizes) { | |
$addsizes = array( | |
"my-new-size" => __( "My New Size") | |
); | |
$newsizes = array_merge($sizes, $addsizes); | |
return $newsizes; | |
} |
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 ('the_content','my_excerpts'); | |
function my_excerpts($content = false) { | |
global $post; | |
// If is the home page, an archive, or search results | |
if(is_front_page() || is_archive() || is_search() || is_tag()) : | |
global $post; | |
$content = $post->post_excerpt; | |
// If an excerpt is set in the Optional Excerpt box | |
if($content) : | |
$content = apply_filters('the_excerpt', $content); |
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', 'child_before_loop'); | |
function child_before_loop () { | |
if ( !is_page() ) { | |
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
remove_action('genesis_before_footer','genesis_footer_widget_areas'); | |
add_action('genesis_footer','genesis_footer_widget_areas'); |
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_filter( 'gform_confirmation_anchor', '__return_true' ); |
OlderNewer