FEATURE Conditionnal h1 h2 for post title depending on post type
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
b11dfc0337
commit
53f76e20f5
|
|
@ -39,7 +39,11 @@ $hasThumbnail = has_post_thumbnail();
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
</div>
|
</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">
|
<div class="post-details">
|
||||||
<?php if ($post_type === 'revues') : ?>
|
<?php if ($post_type === 'revues') : ?>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user