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 the opening php tag | |
//* Force content-sidebar layout | |
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_content_sidebar' ); | |
//* Force sidebar-content layout | |
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_sidebar_content' ); | |
//* Force content-sidebar-sidebar layout |
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 the opening php tag shown above. Copy the code shown below. | |
//* Display a custom favicon | |
add_filter( 'genesis_pre_load_favicon', 'cmk_favicon_filter' ); | |
function cmk_favicon_filter( $favicon_url ) { | |
return get_stylesheet_directory_uri().'/images/favicon.png'; | |
} |
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
/** | |
* @author David Perez - Closemarketing | |
* @example https://www.closemarketing.es/ | |
*/ | |
add_action('get_header', 'wpsites_remove_header'); | |
function wpsites_remove_header() { | |
if (is_home()||is_front_page()) { | |
remove_action( 'genesis_entry_header', 'genesis_do_post_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
<?php | |
//* Do NOT include the opening php tag | |
//* Remove the edit link | |
add_filter ( 'genesis_edit_post_link' , '__return_false' ); |
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
/** | |
* @author Brad Dalton - WP Sites | |
* @example http://wpsites.net/web-design/remove-header/ | |
*/ | |
function wpsites_remove_header() { | |
if (is_home()||is_front_page()) { | |
remove_action( 'genesis_entry_header', 'genesis_do_post_title' ); | |
} | |
} |