modified header template

This commit is contained in:
jorge 2024-01-26 10:22:21 +01:00
parent cc45de2901
commit 391d999466
1 changed files with 25 additions and 20 deletions

View File

@ -54,7 +54,9 @@
</div><!-- .site-branding -->
<nav id="site-navigation-main" class="main-navigation">
<button class="menu-toggle" aria-controls="primary-menu" aria-expanded="false" style="background-image: url('<?php echo esc_url( wp_get_attachment_url( get_theme_mod( 'custom_logo' ) ) ); ?>');" ><?php esc_html_e( 'Menu XarxaProd', 'xarxaprod' ); ?></button>
<button class="menu-toggle" aria-controls="primary-menu" aria-expanded="false">
<?php esc_html_e( 'Menu', 'xarxaprod' ); ?>
</button>
<section class="main-navigation-content">
<?php
wp_nav_menu(
@ -68,27 +70,30 @@
</nav><!--primary #site-navigation -->
</div>
<div class="secondary">
<nav id="site-navigation-secondary" class="site-navigation secondary-navigation toggle-secondary-navigation">
<legend class="hide-content">menu</legend>
<input id="hide-menu-mobile" class="hide-not-mobile toggle" name="toggle" type="radio">
<label for="show-menu-mobile" class="hide-not-mobile toggle-show"><span class="hide-content">open</span></label>
<input id="show-menu-mobile" class="hide-not-mobile toggle" name="toggle" type="radio">
<div class="toggled-menu">
<label for="hide-menu-mobile" class="hide-not-mobile toggle-hide"><span class="hide-content">close</span></label>
<section class="secondary-navigation-content">
<?php
// <nav id="site-navigation-secondary" class="site-navigation secondary-navigation toggle-secondary-navigation">
// <legend class="hide-content">menu</legend>
// <input id="hide-menu-mobile" class="hide-not-mobile toggle" name="toggle" type="radio">
// <label for="show-menu-mobile" class="hide-not-mobile toggle-show"><span class="hide-content">open</span></label>
// <input id="show-menu-mobile" class="hide-not-mobile toggle" name="toggle" type="radio">
// <div class="toggled-menu">
// <label for="hide-menu-mobile" class="hide-not-mobile toggle-hide"><span class="hide-content">close</span></label>
// <section class="secondary-navigation-content">
;?>
<?php // here content to hide or show ?>
<?php
wp_nav_menu(
array(
'theme_location' => 'menu-2',
'menu_id' => 'secondary-menu',
)
);
?>
</section>
</div><!--toggled-menu-->
</nav><!--secondary #site-navigation -->
// wp_nav_menu(
// array(
// 'theme_location' => 'menu-2',
// 'menu_id' => 'secondary-menu',
// )
// );
// ?>
<?php
// </section>
// </div><!--toggled-menu-->
// </nav><!--secondary #site-navigation -->
;?>
<?php the_header_image_tag(); // header image to show below menus before title ?>
</div><!--secondary-->