BuddyBoss Home – Web › Support Forums › Themes › BuddyBoss theme › Social Media Links in footer
- This topic has 3 replies, 3 contibutors, and was last updated 9 years, 3 months ago by Anonymous.
Question
May 13, 2015 at 4:29 pm #40169@daniel_amigosHi BuddyBoss team!
The links in the footer appear even when there is no link saved in the Theme Personalizer. I had fixed it on my installation but after the update, I had to go back in and change it again.
Maybe this is by design so that people that are new to the theme see them and dig into the theme to personalize the links. If so, then I will be have to change this on each update?
All I have to do is change !== to != where you compare if the link is empty or not. Which makes me think that it is not by design because you are validating if they are emtpy and they are.
<!-- display social icons if added in Theme Customizer --> <?php if ( get_theme_mod( 'boss_link_facebook' ) !== '') : ?> <li><a class="link-facebook" title="<?php _e( "Facebook", 'buddyboss' ); ?>" href="<?php echo esc_url( get_theme_mod( 'boss_link_facebook' ) ); ?>" target="_blank"><span></span></a></li> <?php endif; ?> <?php if ( get_theme_mod( 'boss_link_twitter' ) !== '') : ?> <li><a class="link-twitter" title="<?php _e( "Twitter", 'buddyboss' ); ?>" href="<?php echo esc_url( get_theme_mod( 'boss_link_twitter' ) ); ?>" target="_blank"><span></span></a></li> <?php endif; ?> <?php if ( get_theme_mod( 'boss_link_linkedin' ) !== '') : ?> <li><a class="link-linkedin" title="<?php _e( "LinkedIn", 'buddyboss' ); ?>" href="<?php echo esc_url( get_theme_mod( 'boss_link_linkedin' ) ); ?>" target="_blank"><span></span></a></li> <?php endif; ?> <?php if ( get_theme_mod( 'boss_link_googleplus' ) !== '') : ?> <li><a class="link-googleplus" title="<?php _e( "Google+", 'buddyboss' ); ?>" href="<?php echo esc_url( get_theme_mod( 'boss_link_googleplus' ) ); ?>" target="_blank"><span></span></a></li> <?php endif; ?> <?php if ( get_theme_mod( 'boss_link_youtube' ) !== '') : ?> <li><a class="link-youtube" title="<?php _e( "Youtube", 'buddyboss' ); ?>" href="<?php echo esc_url( get_theme_mod( 'boss_link_youtube' ) ); ?>" target="_blank"><span></span></a></li> <?php endif; ?> <?php if ( get_theme_mod( 'boss_link_instagram' ) !== '') : ?> <li><a class="link-instagram" title="<?php _e( "Instagram", 'buddyboss' ); ?>" href="<?php echo esc_url( get_theme_mod( 'boss_link_instagram' ) ); ?>" target="_blank"><span></span></a></li> <?php endif; ?> <?php if ( get_theme_mod( 'boss_link_pinterest' ) !== '') : ?> <li><a class="link-pinterest" title="<?php _e( "Pinterest", 'buddyboss' ); ?>" href="<?php echo esc_url( get_theme_mod( 'boss_link_pinterest' ) ); ?>" target="_blank"><span></span></a></li> <?php endif; ?> <?php if ( get_theme_mod( 'boss_link_email' ) !== '') : ?> <li><a class="link-email" title="<?php _e( "Email", 'buddyboss' ); ?>" href="mailto:<?php echo esc_attr( get_theme_mod( 'boss_link_email' ) ); ?>" target="_blank"><span></span></a></li> <?php endif; ?>
Answers
May 15, 2015 at 10:30 am #40250@
AnonymousHi @daniel_amigos,thanks for your suggestion. I will pass this to developer and they will include these conditions as well in next updates.
Regards
Varun DubeyAugust 23, 2015 at 8:55 am #44960@thorstenHi guys,
the issue still exists in version 4.2.1
Thanks to Daniel (@daniel_amigos) for the hint. It was confusing to find the right solution.
Best Regards,
ThorstenAugust 23, 2015 at 12:29 pm #44975@
AnonymousHi @thorsten,
I have notified developers again, hopefully it will be update in next version
Regards
- The question ‘Social Media Links in footer’ is closed to new replies.