Compare commits

...
2 Commits
Author SHA1 Message Date
Keith Solomon ef0b542e9d 🐞 fix: Use plain header everywhere except Contact page
Deploy to Dreamhost (dev) / build (push) Successful in 34s
Sync TODOs with Issues / sync_todos (push) Successful in 6s
2026-07-05 14:18:26 -05:00
Keith Solomon 8f9fd8bf4c 🐞 fix: Add margin everywhere except Contact page 2026-07-05 14:17:56 -05:00
2 changed files with 6 additions and 2 deletions
+5 -1
View File
@@ -19,11 +19,15 @@ $locations = get_nav_menu_locations();
$footerNav = ! empty( $locations['footer_navigation'] )
? ( wp_get_nav_menu_items( (int) $locations['footer_navigation'] ) ? wp_get_nav_menu_items( (int) $locations['footer_navigation'] ) : array() )
: array();
if ( ! is_page( 'contact' ) ) {
$marginClass = 'mt-20';
}
?>
</main>
<footer role="contentinfo" class="site-footer bg-cwc-blue-02 text-white pt-16 pb-12 text-base">
<footer role="contentinfo" class="site-footer bg-cwc-blue-02 text-white pt-16 pb-12 text-base <?php echo esc_attr( $marginClass ?? '' ); ?>">
<div class="container mx-auto grid grid-cols-4 gap-6">
<div class="max-w-[40ch]">
<h2 id="footer-header" class="max-w-64 h-auto">
+1 -1
View File
@@ -52,7 +52,7 @@ $showHero = $post->post_parent === $services ? true : false;
<?php
if ( $showHero ) :
get_template_part( 'views/partials/page-hero-services' );
elseif ( ! is_front_page() ) :
elseif ( ! is_front_page() && ! is_page( 'contact' ) ) :
get_template_part( 'views/partials/page-hero' );
endif;
?>