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
// Show Footer Widget Areas only on homepage | |
add_action( 'genesis_after_content_sidebar_wrap', 'sk_footer_widget_areas' ); | |
function sk_footer_widget_areas() { | |
if ( is_home() || is_front_page() ) | |
return; | |
remove_action( 'genesis_before_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
<?php //do not include this php tag | |
add_action ('genesis_after_entry', 'my_custom_loop_func'); | |
function my_custom_loop_func() { | |
if(is_home()) | |
{ | |
global $wp_query; | |
if( 2 == $wp_query->current_post ) { |
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
if ( is_active_sidebar( 'home-featured-1' ) || is_active_sidebar( 'home-featured-2' ) || is_active_sidebar( 'home-featured-3' ) || is_active_sidebar( 'home-featured-4' ) ) { | |
//* Add Home featured Widget areas | |
add_action( 'genesis_before_content_sidebar_wrap', 'minimum_home_featured', 15 ); | |
} | |
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 these filters in functions.php | |
add_filter( 'meta_content', 'wptexturize' ); | |
add_filter( 'meta_content', 'convert_smilies' ); | |
add_filter( 'meta_content', 'convert_chars' ); | |
add_filter( 'meta_content', 'wpautop' ); | |
add_filter( 'meta_content', 'shortcode_unautop' ); | |
add_filter( 'meta_content', 'prepend_attachment' ); | |
NewerOlder