Created
October 25, 2019 15:00
-
-
Save thecodepoetry/841b3a3d7b45a7c9f574b2e30ae04385 to your computer and use it in GitHub Desktop.
Facny 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
add_action( 'get_header', 'dt_fancytitle_override', 10 ); | |
function dt_fancytitle_override() { | |
$config = Presscore_Config::get_instance(); | |
if( is_page(2) ) { // check for your condition | |
$config->set( 'fancy_header.title.mode', 'custom' ); | |
$config->set( 'fancy_header.title', 'My new custom title' ); | |
$config->set( 'fancy_header.breadcrumbs', 'disabled' ); //enabled | |
//echo '<pre>'; | |
//print_r($config); | |
//echo '</pre>'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment