REFACTOR Update header structure by replacing primary menu with secondary menu and adding a dynamic redirector link
This commit is contained in:
parent
bf4fc9131a
commit
2c241c2df5
57
header.php
57
header.php
|
|
@ -20,56 +20,27 @@
|
||||||
|
|
||||||
<?php do_action('tailpress_header'); ?>
|
<?php do_action('tailpress_header'); ?>
|
||||||
|
|
||||||
<!-- <header id="primary-header">
|
<header id="primary-header">
|
||||||
<div class="primary-menu-container">
|
<div class="secondary-menu-container">
|
||||||
<div class="lg:flex lg:justify-between lg:items-center py-6">
|
<div class="secondary-menu-nav">
|
||||||
<div class="flex justify-between items-center">
|
|
||||||
<div>
|
|
||||||
<?php if (has_custom_logo()) { ?>
|
|
||||||
<?php the_custom_logo(); ?>
|
|
||||||
<?php } else { ?>
|
|
||||||
<a href="<?php echo get_bloginfo('url'); ?>" class="font-extrabold text-lg uppercase">
|
|
||||||
<?php echo get_bloginfo('name'); ?>
|
|
||||||
</a>
|
|
||||||
|
|
||||||
<p class="text-sm font-light text-gray-600">
|
|
||||||
<?php echo get_bloginfo('description'); ?>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<?php } ?>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="lg:hidden">
|
|
||||||
<a href="#" aria-label="Toggle navigation" id="primary-menu-toggle">
|
|
||||||
<svg viewBox="0 0 20 20" class="inline-block w-6 h-6" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
||||||
<g stroke="none" stroke-width="1" fill="currentColor" fill-rule="evenodd">
|
|
||||||
<g id="icon-shape">
|
|
||||||
<path d="M0,3 L20,3 L20,5 L0,5 L0,3 Z M0,9 L20,9 L20,11 L0,11 L0,9 Z M0,15 L20,15 L20,17 L0,17 L0,15 Z" id="Combined-Shape"></path>
|
|
||||||
</g>
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
wp_nav_menu(
|
wp_nav_menu(
|
||||||
array(
|
array(
|
||||||
'container_id' => 'primary-menu',
|
'container' => 'false',
|
||||||
'container_class' => 'bg-primary mt-4 p-4 lg:mt-0 lg:p-0 lg:bg-transparent lg:block',
|
'theme_location' => 'secondary',
|
||||||
'menu_class' => 'lg:flex lg:-mx-4',
|
'li_class' => 'menu-navlink',
|
||||||
'theme_location' => 'primary',
|
|
||||||
'li_class' => 'lg:mx-4 menu-navlink',
|
|
||||||
'fallback_cb' => false,
|
'fallback_cb' => false,
|
||||||
)
|
)
|
||||||
);
|
); ?>
|
||||||
?>
|
|
||||||
<img class="close_btn" src="<?php echo get_template_directory_uri() . '/resources/img/close_menu_icon.svg' ?>" />
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</header> -->
|
|
||||||
|
|
||||||
<header id="primary-header">
|
<div class="dynamiques-redirector">
|
||||||
|
<a href="<?php echo get_bloginfo('url'); ?>">
|
||||||
|
Revue Dynamiques
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
<div class="primary-menu-container lg:flex lg:justify-between lg:items-center">
|
<div class="primary-menu-container lg:flex lg:justify-between lg:items-center">
|
||||||
<nav id="primary-menu-nav" class="flex justify-between items-center">
|
<nav id="primary-menu-nav" class="flex justify-between items-center">
|
||||||
<div class="website_logo">
|
<div class="website_logo">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user