BuddyBoss Home – Web Support Forums Themes BuddyBoss theme Social Media Links in footer

Viewing 4 posts - 1 through 4 (of 4 total)
  • Question

    #40169
    @daniel_amigos

    Hi 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

    #40250

    Anonymous
    @

    Hi @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 Dubey

    #44960

    Hi 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,
    Thorsten

    #44975

    Anonymous
    @

    Hi @thorsten,
    I have notified developers again, hopefully it will be update in next version
    Regards

Viewing 4 posts - 1 through 4 (of 4 total)
  • The question ‘Social Media Links in footer’ is closed to new replies.