🐞 fix: Add margin everywhere except Contact page

This commit is contained in:
Keith Solomon
2026-07-05 14:17:56 -05:00
parent d4a3e0a6c8
commit 8f9fd8bf4c
+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">