Skip to content

Instantly share code, notes, and snippets.

@bigdigital
Last active June 28, 2017 08:21
Show Gist options
  • Save bigdigital/5fec207364e31a31bd5316b9ce8199d5 to your computer and use it in GitHub Desktop.
Save bigdigital/5fec207364e31a31bd5316b9ce8199d5 to your computer and use it in GitHub Desktop.
The7 Add standard page title after slide page title
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