diff --git a/footer.php b/footer.php index 521fd3a..afda716 100644 --- a/footer.php +++ b/footer.php @@ -103,8 +103,9 @@ $footerNav = ! empty( $locations['footer_navigation'] ) 'views/partials/social-media', null, array( - 'circle' => true, - 'classes' => 'social-icons p-0 text-14px bg-white! text-cwc-blue-02! hover:opacity-80!', + 'circle' => false, + 'classes' => 'social-icons p-0 hover:opacity-80!', + 'size' => '24', ) ); ?> diff --git a/styles/base/misc.css b/styles/base/misc.css index 5da6b1d..944390b 100644 --- a/styles/base/misc.css +++ b/styles/base/misc.css @@ -1 +1,5 @@ /* Miscellaneous extra styles */ + +.social-icons svg { + @apply bg-transparent fill-white rounded-full block; +} diff --git a/views/components/nav-aux.php b/views/components/nav-aux.php index c99b0cb..1a81a63 100644 --- a/views/components/nav-aux.php +++ b/views/components/nav-aux.php @@ -34,7 +34,17 @@ $profile = getFieldValue( 'social_media.profile_name' ) ? getFieldValue( 'social ?> - + false, + 'classes' => 'social-icons p-0 hover:opacity-80!', + 'size' => '16', + ) + ); + ?> diff --git a/views/icons/facebook.php b/views/icons/facebook.php index 7cbd0a9..ff7e69b 100644 --- a/views/icons/facebook.php +++ b/views/icons/facebook.php @@ -1 +1,6 @@ - + + + + Facebook + + diff --git a/views/icons/linkedin.php b/views/icons/linkedin.php index 3c16583..ac4588d 100644 --- a/views/icons/linkedin.php +++ b/views/icons/linkedin.php @@ -1 +1,5 @@ - + + + + + diff --git a/views/icons/youtube.php b/views/icons/youtube.php index 3c5e5e6..2d00d37 100644 --- a/views/icons/youtube.php +++ b/views/icons/youtube.php @@ -1 +1,5 @@ - + + + + + diff --git a/views/partials/social-media.php b/views/partials/social-media.php index 30a66e0..e07b9b4 100644 --- a/views/partials/social-media.php +++ b/views/partials/social-media.php @@ -7,8 +7,9 @@ namespace CWC; -$classes = $args['classes'] ?? ''; $circle = $args['circle'] ?? ''; +$classes = $args['classes'] ?? ''; +$size = $args['size'] ?? '24'; // Define social media sites and their URLs $sites = array( @@ -30,7 +31,7 @@ foreach ( $sites as $name => $url ) { if ( $url ) { ?> - + $size ) ); ?> Visit our page