diff --git a/functions.php b/functions.php index eed571b0..2aaffd29 100644 --- a/functions.php +++ b/functions.php @@ -196,10 +196,10 @@ function ucsc_adjust_structure( $block_content = '', $block = array() ) { */ function ucsc_post_author_link( $block_content = '', $block = array() ) { // Check for single post; use `global $post` to access data outide the Loop. - if ( is_single() ) { - if ( isset( $block['blockName'] ) && 'core/post-author' === $block['blockName'] ) { + if ( is_singular() ) { + if ( isset( $block['blockName'] ) && 'core/post-author-name' === $block['blockName'] ) { if ( function_exists( 'coauthors_posts_links' ) ) { - $block_content = coauthors_posts_links( null, null, null, null, false ); + $block_content = coauthors_posts_links( null, null, null, null, false ); } } } @@ -251,7 +251,7 @@ function ucsc_breadcrumbs_constructor() { 'labels' => $labels, 'show_on_front' => true, 'show_trail_end' => false, - 'container_class'=> 'ucsc-page-header__breadcrumbs alignwide' + 'container_class'=> 'ucsc-page-header__breadcrumbs' ); return Hybrid\Breadcrumbs\Trail::render( $args ); } diff --git a/templates/single.html b/templates/single.html index 2e866299..76bfdf46 100644 --- a/templates/single.html +++ b/templates/single.html @@ -9,7 +9,7 @@
- +