diff --git a/template-components/header/menu-renovateur.php b/template-components/header/menu-renovateur.php index efcb957..f98297b 100644 --- a/template-components/header/menu-renovateur.php +++ b/template-components/header/menu-renovateur.php @@ -106,7 +106,7 @@ $logoSRC = wp_get_attachment_image_src($logoID, 'full'); $postThematique = get_the_terms($item->object_id, "thematiques")[0]; $postParentThematique = getMainThematique($postThematique); $thematiqueCover = get_field('taxonomy_pictures', "thematiques_" . $postParentThematique->term_id); - $thematiqueColorslug = getThematiqueFamilySlug($postThematique->slug); + $thematiqueColorslug = getThematiqueFamilySlug($postParentThematique->slug); ?> @@ -141,7 +141,6 @@ $logoSRC = wp_get_attachment_image_src($logoID, 'full'); $taxonomyRelatedPost = get_posts($args)[0] ?? null; $cover = get_field('taxonomy_pictures', "thematiques_" . $mainTaxonomyParent->term_id); - ?>