Skip to content

Commit

Permalink
Merge pull request #89 from OpenSourceOrg/add/dev/50-event-page-updates
Browse files Browse the repository at this point in the history
Add breadcrumbs to the single Event page (dev)
  • Loading branch information
bernattorras authored Jun 7, 2024
2 parents 227b4bf + 27379b0 commit 43d9210
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions themes/osi/single.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,13 @@

<main class="content--body <?php echo esc_attr( osi_main_class() ); ?>" role="main">
<section class="content--page" id="content-page">
<?php get_template_part( 'template-parts/breadcrumbs' ); ?>

<?php
if ( 'event' === get_post_type() ) {
get_template_part( 'template-parts/breadcrumbs-sc_event' );
} else {
get_template_part( 'template-parts/breadcrumbs' );
}

while ( have_posts() ) :
the_post();

Expand Down

0 comments on commit 43d9210

Please sign in to comment.