fix(footer): remove default links from social media icons

Removed default '#' links for social media icons in the footer to ensure that each icon only appears if a valid URL is provided. This change avoids rendering misleading placeholders and enhances user experience by preventing non-functional links.
This commit is contained in:
Kumi 2024-08-23 19:18:24 +02:00
parent c3914f083d
commit a09cd80a50
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -13,14 +13,14 @@
?>
</div>
<div class="social-media mt-3">
<?php if (get_theme_mod('footer_facebook_link', '#')) : ?>
<a href="<?php echo get_theme_mod('footer_facebook_link', '#'); ?>" class="mx-2"><img src="<?php echo get_template_directory_uri(); ?>/facebook-icon.png" alt="Facebook"></a>
<?php if (get_theme_mod('footer_facebook_link')) : ?>
<a href="<?php echo get_theme_mod('footer_facebook_link'); ?>" class="mx-2"><img src="<?php echo get_template_directory_uri(); ?>/facebook-icon.png" alt="Facebook"></a>
<?php endif;
if (get_theme_mod('footer_twitter_link', '#')) : ?>
<a href="<?php echo get_theme_mod('footer_twitter_link', '#'); ?>" class="mx-2"><img src="<?php echo get_template_directory_uri(); ?>/twitter-icon.png" alt="Twitter"></a>
if (get_theme_mod('footer_twitter_link')) : ?>
<a href="<?php echo get_theme_mod('footer_twitter_link'); ?>" class="mx-2"><img src="<?php echo get_template_directory_uri(); ?>/twitter-icon.png" alt="Twitter"></a>
<?php endif;
if (get_theme_mod('footer_linkedin_link', '#')) : ?>
<a href="<?php echo get_theme_mod('footer_linkedin_link', '#'); ?>" class="mx-2"><img src="<?php echo get_template_directory_uri(); ?>/linkedin-icon.png" alt="LinkedIn"></a>
if (get_theme_mod('footer_linkedin_link')) : ?>
<a href="<?php echo get_theme_mod('footer_linkedin_link'); ?>" class="mx-2"><img src="<?php echo get_template_directory_uri(); ?>/linkedin-icon.png" alt="LinkedIn"></a>
<?php endif; ?>
</div>
</div>