• Resolved cosdesign

    (@cosdesign)


    Just want to share with you guys a quick fix in case you want to have a different color for the clicked/liked post icon (in this case a red color).

    Add this to your CSS file:

    a[data-user-check="1"].pld-like-dislike-trigger,
    a.pld-like-dislike-trigger.active {
      color: #f5474a;
    }

    And this inside your jquery file(required or you’ll have to reload the page to see the applied css effect):

    // add class active when clicking the like icon
        $('.pld-like-trigger').on( "click", function() {
          $(this).addClass("active");
        })
    • This topic was modified 4 years, 2 months ago by cosdesign.
  • The topic ‘Different color for liked post icon’ is closed to new replies.