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_action ( 'genesis_post_content' , 'remove_post_meta_single_posts' ); | |
function remove_post_meta_single_posts) { | |
global $post; | |
if ( is_single () ) | |
remove_action( 'genesis_after_post_content', '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_theme_support( 'genesis-custom-header', array( 'width' => 960, 'height' => 120 ) ); | |
//Paste the code at the end of your child themes functions.php file and change the values to fit with your theme and header image. |
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_filter( 'genesis_pre_get_option_site_layout', 'child_do_layout' ); | |
function child_do_layout( $opt ) { | |
$opt = 'full-width-content'; // Change this to any Genesis layout | |
return $opt; | |
} | |
/** Other options include: | |
* content-sidebar | |
* sidebar-content | |
* content-sidebar-sidebar |
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_filter( 'genesis_pre_get_option_site_layout', 'child_do_layout' ); | |
function child_do_layout( $opt ) { | |
$opt = 'full-width-content'; | |
return $opt; | |
} |
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
DELETE pm | |
FROM wp_postmeta pm | |
LEFT JOIN wp_posts wp ON wp.ID = pm.post_id | |
WHERE wp.ID IS NULL |
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_action( 'get_header', 'bourncreative_remove_page_titles' ); | |
function bourncreative_remove_page_titles() { | |
if ( is_page() && ! is_page_template( 'page_blog.php' ) ) | |
remove_action( 'genesis_post_title', 'genesis_do_post_title' ); | |
} |
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_action( 'get_header', 'wpsites_remove_page_titles' ); | |
function wpsites_remove_page_titles() { | |
if ( is_page() && is_page_template() ) | |
remove_action( 'genesis_post_title', 'genesis_do_post_title' ); | |
} |
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 meta function */ | |
remove_action( 'genesis_after_post_content', 'genesis_post_meta' ); | |
/** Add the post meta function before posts*/ | |
add_action( 'genesis_before_post_content', 'genesis_post_meta' ); | |
/** Remove the post info function */ | |
remove_action( 'genesis_before_post_content', 'genesis_post_info' ); |