Change chevron-up icon to thumbs-up icon in votes
-
Hi
How can i able to change this chevron-up/chevron-down icons to thumbs-up/thumbs-down icons in votes.
I am using Harmony theme.
-
<a component="post/upvote" href="#" class="btn-ghost-sm {{{ if posts.upvoted }}}upvoted{{{ end }}}"> <i class="fa fa-fw fa-thumbs-up text-primary"></i> </a>
That's how I've done it. The code is in
/node_modules/nodebb-theme-harmony/templates/partials/topic/post.tpl
-
Thank you @dave1904
-
@vijay-kumavat @dave1904 you are better off targeting the icon itself and using CSS to override it. This way, your changes won't be overwritten on the next upgrade.
-
I did this too, its not refelected.
https://community.nodebb.org/topic/15746/how-to-change-the-icons/3 -
@vijay-kumavat Can you show me the code you used ?
-
// Change the icon for votes span.votes { // not voted is outline heart .fa-chevron-up:before { content: "\f08a"; } // upvoted is solid heart .upvoted .fa-chevron-up:before { content: "\f004"; } }
-
@vijay-kumavat You might need
!important
for it to take effect. -
@phenomlab said in
You might need
!important
for it to take effect.A good tip and point because I'm finding I have to use that a lot more in the live customisation to force targeted CSS changes to take hold.
-