Skip to content
This repository has been archived by the owner on Jun 8, 2023. It is now read-only.

add before and after menu language hooks #85

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion design-italia/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,18 @@
<!-- <a class="d-none d-lg-block navbar-brand" href="#"> -->
<img class="header-slim-img" alt="" src="<?php header_image(); ?>">
<!-- </a> -->

<?php do_action('design_italia_before_menu_language'); ?>

<?php if ( has_nav_menu( 'menu-language' ) ) {
echo '<div class="header-slim-right-zone">';
echo '<label for="show-menu-lingua" class="show-menu-lingua">&#8942;</label><input type="checkbox" id="show-menu-lingua" role="button">';
wp_nav_menu(array( 'theme_location' => 'menu-language', 'container' => 'ul', 'menu_class' => 'nav float-right' ));
echo '</div>';
} ?>

<?php do_action('design_italia_after_menu_language'); ?>

</div>
</div>
</div>
Expand Down Expand Up @@ -90,4 +96,4 @@
</div>
</header>

<div id="container">
<div id="container">