This topic has 6 replies, 2 voices, and was last updated 8 years by yourateporn.

  • Author
  • #105029
     yourateporn
    Participant

    Hello again.

     

    I really want to change the star button into a red heart. When you click on it, it will be dark red. Is this possible?

    I find this code:

    #buddypress a.button.fav:before, #buddypress a.button.unfav:before, #buddypress a.fav.bp-secondary-action:before, #buddypress a.unfav.bp-secondary-action:before {

      content: “\e84a” !important;
    }
    But, this is thumbs up. I i put this code in from the link: https://developer.wordpress.org/resource/dashicons/#heart
    Then i think the code need to be:

    #buddypress a.button.fav:before, #buddypress a.button.unfav:before, #buddypress a.fav.bp-secondary-action:before, #buddypress a.unfav.bp-secondary-action:before {

      content: “\F487” !important;
    }
    But nothing happens when i use this css.
    And i cant change collor to for only the favo button.
    Hope some one can help me out 😀
    #105037
     sharmstr
    Moderator

    Because its using Fontello, not Dashicons. \e80f is a heart

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #105039
     yourateporn
    Participant

    That works, and can i change the collor to?

    #105041
     sharmstr
    Moderator

    add color:red;

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #105043
     yourateporn
    Participant

    How do i put this in the css code? 🙂

    And is the hover color an other color then?

    I want the collor of the heart red, and when they add as favorite the collor is dark red

    #105051
     sharmstr
    Moderator

    Before

    COPY CODE
    
    #buddypress a.button.fav:before, #buddypress a.fav.bp-secondary-action:before {
        content: "\e80f";
        color: red;
    }
    

    after

    COPY CODE
    
    #buddypress a.button.unfav:before, #buddypress a.unfav.bp-secondary-action:before {
        content: "\e80f";
        color: #ca0000;
    }
    

    hover

    COPY CODE
    
    #buddypress a.button.fav:hover:before, #buddypress a.button.unfav:hover:before, #buddypress a.fav.bp-secondary-action:hover:before, #buddypress a.unfav.bp-secondary-action:hover:before {
        color: green;
    }
    

    Change colors to suit your needs

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #105056
     yourateporn
    Participant

    This is beautiful. Thank you so much! 🙂

Viewing 7 posts - 1 through 7 (of 7 total)

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?