🐞 fix: Add margin everywhere except Contact page
This commit is contained in:
+5
-1
@@ -19,11 +19,15 @@ $locations = get_nav_menu_locations();
|
|||||||
$footerNav = ! empty( $locations['footer_navigation'] )
|
$footerNav = ! empty( $locations['footer_navigation'] )
|
||||||
? ( wp_get_nav_menu_items( (int) $locations['footer_navigation'] ) ? wp_get_nav_menu_items( (int) $locations['footer_navigation'] ) : array() )
|
? ( wp_get_nav_menu_items( (int) $locations['footer_navigation'] ) ? wp_get_nav_menu_items( (int) $locations['footer_navigation'] ) : array() )
|
||||||
: array();
|
: array();
|
||||||
|
|
||||||
|
if ( ! is_page( 'contact' ) ) {
|
||||||
|
$marginClass = 'mt-20';
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
</main>
|
</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="container mx-auto grid grid-cols-4 gap-6">
|
||||||
<div class="max-w-[40ch]">
|
<div class="max-w-[40ch]">
|
||||||
<h2 id="footer-header" class="max-w-64 h-auto">
|
<h2 id="footer-header" class="max-w-64 h-auto">
|
||||||
|
|||||||
Reference in New Issue
Block a user