breadcrumb corrections
This commit is contained in:
parent
ea1109ca0e
commit
4a3b2ea61d
|
|
@ -37,32 +37,32 @@ $query_args = array(
|
|||
$relatedTaxQuestions = new WP_Query($query_args);
|
||||
?>
|
||||
|
||||
<nav class="breadcrumbs_navigation" aria-label="breadcrumbs">
|
||||
<?php
|
||||
$current_children_thematique = get_queried_object()->parent != 0 ? get_queried_object() : null;
|
||||
$archiveQuestions = get_page_by_template('template-archive-questions.php')[0];
|
||||
?>
|
||||
<ol>
|
||||
<li>
|
||||
<a href="<?php echo home_url() ?>" title="<?php echo __("Accueil", "homegrade-theme__texte-fonctionnel") ?>">
|
||||
<img src="<?php echo get_template_directory_uri() . "/resources/img/pictogrammes/icon_house_dark.svg" ?>" alt="">
|
||||
</a>
|
||||
</li>
|
||||
<li><a href="<?php echo get_post_permalink($archiveQuestions) ?>"><?php echo $archiveQuestions->post_title ?></a></li>
|
||||
|
||||
<li>
|
||||
<a href="<?php echo get_term_link($mainThematique) ?>" aria-current='location'><?php echo $mainThematique->name ?></a>
|
||||
</li>
|
||||
<?php if ($current_children_thematique) : ?>
|
||||
<li>
|
||||
<a href="<?php echo get_term_link($current_children_thematique) ?>"><?php echo $current_children_thematique->name ?></a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
|
||||
</ol>
|
||||
</nav>
|
||||
|
||||
<div class="taxonomy-question-page-container <?php echo $thematiqueColorSlug ? "taxonomy-question-page--" . $mainThematique->slug : "" ?>"" data-thematique-id=" <?php echo $currentThematique->term_id ?>">
|
||||
<nav class="breadcrumbs_navigation" aria-label="breadcrumbs">
|
||||
<?php
|
||||
$current_children_thematique = get_queried_object()->parent != 0 ? get_queried_object() : null;
|
||||
$archiveQuestions = get_page_by_template('template-archive-questions.php')[0];
|
||||
?>
|
||||
<ol>
|
||||
<li>
|
||||
<a href="<?php echo home_url() ?>" title="<?php echo __("Accueil", "homegrade-theme__texte-fonctionnel") ?>">
|
||||
<img src="<?php echo get_template_directory_uri() . "/resources/img/pictogrammes/icon_house_dark.svg" ?>" alt="">
|
||||
</a>
|
||||
</li>
|
||||
<li><a href="<?php echo get_post_permalink($archiveQuestions) ?>"><?php echo $archiveQuestions->post_title ?></a></li>
|
||||
|
||||
<li>
|
||||
<a href="<?php echo get_term_link($mainThematique) ?>" aria-current='location'><?php echo $mainThematique->name ?></a>
|
||||
</li>
|
||||
<?php if ($current_children_thematique) : ?>
|
||||
<li>
|
||||
<a href="<?php echo get_term_link($current_children_thematique) ?>"><?php echo $current_children_thematique->name ?></a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
|
||||
</ol>
|
||||
</nav>
|
||||
|
||||
<?php get_template_part(
|
||||
'template-components/posts-components/chapter-header',
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user