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:
parent
c3914f083d
commit
a09cd80a50
1 changed files with 6 additions and 6 deletions
12
footer.php
12
footer.php
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue