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>
|
||||||
<div class="social-media mt-3">
|
<div class="social-media mt-3">
|
||||||
<?php if (get_theme_mod('footer_facebook_link', '#')) : ?>
|
<?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>
|
<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;
|
<?php endif;
|
||||||
if (get_theme_mod('footer_twitter_link', '#')) : ?>
|
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>
|
<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;
|
<?php endif;
|
||||||
if (get_theme_mod('footer_linkedin_link', '#')) : ?>
|
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>
|
<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; ?>
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue