BuddyBoss Home – Web › Support Forums › Plugins › BuddyBoss Wall › Change Font Awesome Icon
Tagged: FontAwsome
- This topic has 14 replies, 4 contibutors, and was last updated 9 years ago by Anonymous.
Question
October 6, 2015 at 9:03 am #48047@anderewHey,
How can I change the Like icon to another font awesome icon?
Cheers,
Andrew
Answers
October 9, 2015 at 8:04 am #48310@
AnonymousHi @anderew,
You can add any font from : https://fortawesome.github.io/Font-Awesome/icons/ to change the like button.
Please add the same CSS in you Custom CSS (just replace the unicode with your icon)file to change the font.
For example I have changed it to dislike button :
.buddyboss-wall-active #buddypress #activity-stream .acomment-options .unfav-comment.bp-secondary-action:before, .buddyboss-wall-active #buddypress #activity-stream .activity-meta .unfav.bp-secondary-action:before { content: "\f165" !important; }
Regards
PallaviOctober 10, 2015 at 12:30 pm #48403@anderewHey Pallavi,
Thanks for the reply. Nothing is working despite adding it to the main and custom css files. Is there a source css file I can change? Or any other suggestions.
Cheers,
Andrew
October 10, 2015 at 10:49 pm #48413@
AnonymousHi @anderew you can copy entry.php to same path inside the child theme
/boss/buddypress/activity/entry.php
like this
/boss-child/buddypress/activity/entry.php
and can edit the comment class<a href="<?php bp_activity_comment_link(); ?>" class="fa fa-reply acomment-reply bp-primary-action" id="acomment-comment-<?php bp_activity_id(); ?>">
fa fa-reply is responsible for the icon display
you can replace it with any other class you like
Regards
Varun DubeyOctober 11, 2015 at 8:34 am #48456@anderewHey Varun,
Thanks for your suggestion, however it is the ‘likes’ I am trying to change not the comments.
I think I have found the issue. https://fortawesome.github.io/Font-Awesome/cheatsheet/ I was trying to use a font image with ‘4.4’ marked next to it… I guess you are running an earlier version of FA?
I tried Pallavi’s suggestion again with a font not marked with ‘4.4’ and it worked.
So 2 more questions… How can I enable 4.4 fonts? And How can I repeat Pallavi’s suggestion for the changing the like/favorite icon in the up-state (her suggestion works for down state).
Cheers guys,
Andrew
October 12, 2015 at 3:46 am #48506@
AnonymousHi @anderew,
Please add the Following Code to Your Child Theme’s functions.php File:
<?php add_action( 'wp_enqueue_scripts', 'prefix_enqueue_awesome' ); /** * Register and load font awesome CSS files using a CDN. * * @link http://www.bootstrapcdn.com/#fontawesome */ function prefix_enqueue_awesome() { wp_enqueue_style( 'prefix-font-awesome', '//maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css', array(), '4.4.0' ); }
Regards
PallaviOctober 14, 2015 at 3:52 pm #48722@anderewPerfect! 😀 Saved my life Pallavi and Varun. Thanks for your help!
October 15, 2015 at 3:59 am #48753@
Anonymous🙂
October 29, 2015 at 1:51 pm #50048@shcthompsonI am new to this template and bought them all… I am having a lot of trouble. I just pasted the code in above as directed and now cannot access my site. I am trying to restore from a backup now and hope it is all there.
October 29, 2015 at 2:01 pm #50049@
AnonymousHi @shcthompson, please let me know which icon you want to change in your site..
Regards
PallaviOctober 29, 2015 at 2:07 pm #50050@shcthompsonHi,
I am having a lot of difficulty. I figured out how to build a menu in the buddypress side. The native buddypress icons are showing up on those items (“) but for other pages it is just a document. I followed the instructions for using font awesome but it didn’t work.
October 29, 2015 at 2:16 pm #50051@
AnonymousHi @shcthompson, Please check the following tutorial to change icons from BuddyPanel menus
Regards
PallaviOctober 29, 2015 at 2:18 pm #50052@shcthompsonI put in the font awesome css code <i class=”fa-coffee fa-2x”></i>. And nothing happens.
October 29, 2015 at 2:21 pm #50053@shcthompsonOk – so it turns out all you need is “fa-coffee” not the whole code
October 30, 2015 at 9:10 am #50158@
AnonymousHi @shcthompson, sorry for delayed response
You just need to add “fa-coffee” there
Regards
Varun Dubey
- The question ‘Change Font Awesome Icon’ is closed to new replies.