adding faq page button
This commit is contained in:
parent
1640cca288
commit
7abf4e5737
|
|
@ -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>
|
||||||
Loading…
Reference in New Issue
Block a user