customizable menu button

This commit is contained in:
Jonas Heinrich 2020-06-05 18:36:22 +02:00
parent d4b709dfc5
commit 0892fab0ac
2 changed files with 24 additions and 2 deletions

View file

@ -148,7 +148,20 @@
<?php get_template_part('template-parts/site-nav'); ?>
<div class="header-button-container">
<a href="https://www.kit-ausbildung.de/de/offene-stellen" class="header-button"><span>Zum Bestand</span></a>
<?php
$menuParameters = array(
'container' => false,
'echo' => false,
'items_wrap' => '%3$s',
'depth' => 0,
'theme_location' => 'extra',
'link_class' => 'header-button',
'link_before' => '<span>',
'link_after' => '</span>',
);
echo strip_tags(wp_nav_menu( $menuParameters ), '<span><a>' );
?>
<!-- <a href="https://www.kit-ausbildung.de/de/offene-stellen" class="header-button"><span>Zum Bestand</span></a> -->
</div>
</div>