Revert "Replace header text logo with image logo"
This reverts commit b35731164d.
This commit is contained in:
+1
-1
File diff suppressed because one or more lines are too long
@@ -11,9 +11,13 @@
|
|||||||
<div class="header-inner">
|
<div class="header-inner">
|
||||||
<!-- Logo -->
|
<!-- Logo -->
|
||||||
<div class="site-branding">
|
<div class="site-branding">
|
||||||
<a href="<?php echo esc_url(home_url('/')); ?>" class="site-logo-link">
|
<?php if (has_custom_logo()) : ?>
|
||||||
<img src="<?php echo esc_url(get_template_directory_uri() . '/assets/images/logo.webp'); ?>" alt="<?php bloginfo('name'); ?>" class="site-logo">
|
<?php the_custom_logo(); ?>
|
||||||
</a>
|
<?php else : ?>
|
||||||
|
<a href="<?php echo esc_url(home_url('/')); ?>" class="site-title-link">
|
||||||
|
<span class="site-title"><?php bloginfo('name'); ?></span>
|
||||||
|
</a>
|
||||||
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Desktop Navigation -->
|
<!-- Desktop Navigation -->
|
||||||
|
|||||||
@@ -27,17 +27,26 @@
|
|||||||
// Logo / Branding
|
// Logo / Branding
|
||||||
.site-branding {
|
.site-branding {
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
}
|
|
||||||
|
|
||||||
.site-logo-link {
|
.custom-logo-link {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
|
||||||
|
|
||||||
.site-logo {
|
img {
|
||||||
height: 50px;
|
max-height: 60px;
|
||||||
width: auto;
|
width: auto;
|
||||||
display: block;
|
}
|
||||||
margin: -4px 0; // Negative margin to fit 50px logo without changing header height
|
}
|
||||||
|
|
||||||
|
.site-title-link {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.site-title {
|
||||||
|
font-family: var(--font-display);
|
||||||
|
font-size: 1.5rem;
|
||||||
|
color: var(--color-text);
|
||||||
|
letter-spacing: 0.02em;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Desktop Navigation
|
// Desktop Navigation
|
||||||
|
|||||||
Reference in New Issue
Block a user