Last active
June 28, 2017 08:21
-
-
Save bigdigital/5fec207364e31a31bd5316b9ce8199d5 to your computer and use it in GitHub Desktop.
The7 Add standard page title after slide page 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
function custom_presscore_do_header_slideshow( $title ) { | |
$id = get_the_ID(); | |
$myPostId = 36444; | |
if ($id !== $myPostId ) return; | |
$config = Presscore_Config::get_instance(); | |
if ( 'slideshow' != $config->get('header_title') ){ | |
return; | |
} | |
$config->set( 'page_title.breadcrumbs.enabled', true ); | |
$config->set( 'header_title', 'enabled' ); | |
// turn off regular titles and breadcrumbs | |
add_action('presscore_before_main_container', 'presscore_page_title_controller', 16); | |
} | |
add_filter( 'presscore_do_header_slideshow', "custom_presscore_do_header_slideshow" ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment