Skip to:
Content
Pages
Categories
Search
Top
Bottom

Glyphicon Disappears on click


  • Dono12
    Participant

    @dono12

    How can I stop the glyphicon from disappearing when the button is clicked. The only way the icon reappears is on a page refresh. The glyph code was added in Buddypress Child Theme entry.php

    
    <a href="<?php bp_activity_favorite_link(); ?>" class="button fav bp-secondary-action"><span class="glyphicon glyphicon-heart" aria-hidden="true"></span> <?php _e( 'Favorite', 'buddypress' ); ?></a>
    
    	<?php else : ?>
    
    	<a href="<?php bp_activity_unfavorite_link(); ?>" class="button unfav bp-secondary-action"><span class="glyphicon glyphicon-heart" aria-hidden="true"></span> <?php _e( 'Remove Favorite', 'buddypress' ); ?></a>
  • You must be logged in to reply to this topic.
Skip to toolbar