Link Library
Change Text Color Based On Value (3 posts)

  1. comziz
    Posted 1 year ago #


    I'm trying to change the "Link Large Description" text color based on value.

    If value = "No" then color = red
    If value = "Yes" then color = green

    I've been searching for a HTML / CSS / PHP solution for this and am trying to use;


    var content = $(".content p").text();
        if (content == "Hayır") {
            $(this).css("color", "#ffffff");
       if (content == "Evet") {
            $(this).css("color", "#ccc");

    Library settings:
    Before "Link Large Description";

    <b>Membership: </b><div class='content'>
    Afer "Link Large Description";

    but it's not working, any suggestions, help, replies are greatly appreciated and thank you all in advance.


  2. Yannick Lefebvre
    Plugin Author

    Posted 1 year ago #

    I have never tried doing conditional content coloring myself in CSS. Perhaps someone more familiar with that functionality can chime in.

  3. comziz
    Posted 1 year ago #

    Thank you for your respond,

    I'll try to figure it out myself.

    But in the mean time, if I could get an answer to my other question (here), it would make it so much easier for me.

    But as I said thank you for your respond, and your plugin and your continuous support for it. It's all much appreciated.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Link Library
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic