Revert "Replace header text logo with image logo"

This reverts commit b35731164d.
This commit is contained in:
Hanson.xyz Dev
2025-11-30 20:02:48 -06:00
parent b35731164d
commit ae46667a7c
3 changed files with 26 additions and 13 deletions
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