adding faq page button

This commit is contained in:
Antoine M 2024-01-09 09:37:01 +01:00
parent 1640cca288
commit 7abf4e5737

View File

@ -69,4 +69,12 @@ if (!function_exists('get_automatic_post')) {
?> ?>
</div> </div>
<?php
$faq_page = get_page_by_template('template-archive-questions.php') ?? null;
$faq_page_url = $faq_page ? get_permalink($faq_page[0]->ID) : null;
?>
<?php if ($faq_page_url) : ?>
<a class="cta cta--outline cta--button" href="<?php echo $faq_page_url ?>"><?php echo __("Consulter toute la FAQ ", "homegrade-theme__texte-fonctionnel") ?></a>
<?php endif; ?>
</section> </section>