FEATURE Conditionnal h1 h2 for post title depending on post type
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Nonimart 2025-06-20 10:22:47 +02:00
parent b11dfc0337
commit 53f76e20f5

View File

@ -39,7 +39,11 @@ $hasThumbnail = has_post_thumbnail();
</p>
</div>
<h1> <?php echo $revueTitle; ?></h1>
<?php if ($post_type === 'revues') : ?>
<h1 class="post-header__title"> <?php echo $revueTitle; ?></h1>
<?php elseif ($post_type === 'articles') : ?>
<h2 class="post-header__title"> <?php echo $revueTitle; ?></h2>
<?php endif; ?>
<div class="post-details">
<?php if ($post_type === 'revues') : ?>