Skip to content

Commit fdad000

Browse files
authored
Merge pull request #38 from jonesch/feature/remove-dup-title-from-single-event
Update the conditional to not show page titles on a Single Event from…
2 parents 6c287e8 + 3b6a215 commit fdad000

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

themes/osi/template-parts/header-featured-image.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<header class="entry-header cover--header no-thumbnail">
2828
<div class="wp-block-cover alignfull has-neutral-dark-background-color has-background-dim-100 has-background-dim">
2929
<div class="wp-block-cover__inner-container">
30-
<?php echo ( ! empty( $page_title ) ) ? '<h1 class="entry-title page--title">' . esc_html( $page_title ) . '</h1>' : ''; ?>
30+
<?php echo ( ! empty( $page_title ) && ! is_singular( 'sc_event' ) ) ? '<h1 class="entry-title page--title">' . esc_html( $page_title ) . '</h1>' : ''; ?>
3131
<?php osi_the_page_dates(); ?>
3232
</div>
3333
</div>

0 commit comments

Comments
 (0)