This file contains hidden or 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 Header Area and Header Markup in Genesis Theme */ | |
remove_action( 'genesis_header', 'genesis_header_markup_open', 5 ); | |
remove_action( 'genesis_header', 'genesis_do_header' ); | |
remove_action( 'genesis_header', 'genesis_header_markup_close', 15 ); |
This file contains hidden or 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
//* Arrow for previous navigation links - basicwp.com | |
add_filter ( 'genesis_prev_link_text' , 'basicwp_prev_older_links_text' ); | |
function basicwp_prev_older_links_text ( $text ) { | |
return '«'; | |
} | |
//* Arrow for next navigation links - basicwp.com | |
add_filter ( 'genesis_next_link_text' , 'basicwp_next_newer_links_text' ); |
This file contains hidden or 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 the post content & post meta (http://www.basicwp.com/remove-post-meta-info-contents-genesis) | |
add_action('template_redirect', 'child_conditional_actions'); | |
function child_conditional_actions() { | |
if( !is_singular() ) { | |
remove_action( 'genesis_entry_content', 'genesis_do_post_content' ); | |
remove_action( 'genesis_entry_header', 'genesis_post_info', 12 ); | |
remove_action( 'genesis_entry_footer', 'genesis_post_meta' ); | |
}} |
This file contains hidden or 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 new widget Between Posts Area | |
genesis_register_sidebar( array( | |
'id' => 'between-posts-area', | |
'name' => __( 'Between Posts Area', 'basicwp-theme' ), | |
'description' => __( 'This widget show between and after few posts.', 'basicwp-theme' ), | |
) ); | |
//* Add widget area between and after 3 posts | |
add_action( 'genesis_after_entry', 'basicwptheme_between_posts_area' ); |
This file contains hidden or 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
//*FOR NEW HTML5 GENESIS THEMES | |
//* New Widget area to show ads under post title | basicwp.com/add-adsense-ads-genesis-single-posts/ | |
genesis_register_sidebar( array( | |
'id' => 'ad-after-title', | |
'name' => __( 'Ad After Title', 'custom' ), | |
'description' => __( 'This is Ad section under post title', 'custom' ), | |
) ); | |
//* Show ads below post title on posts | |
add_action( 'genesis_entry_header', 'basicwp_post_ad_feature', 12 ); |