• Resolved luciojmartinez

    (@luciojmartinez)


    Hi

    I’m triying to put conditional colours in cells based in a values but I’t doesn’t work.

    In the page I have

    [table id=3 highlight=”TOTS” highlight_full_cell_match=”false” datatables_columnfilterwidgets=true datatables_columnfilterwidgets_exclude_columns=1,4,5,6,7,8 filter_full_cell_match=false /]

    iN the custom css I have

    .tablepress-id-3 .highlight-tots {
    background-color: #fcfc03 !important;
    }

    And I have the TablePress Extension: Cell Highlighting installed and active

    My theme is Poseidon

    nothing happens

    You can see the page is http://lnx.universitari.org/wp/calendari-i-resultats/

    Could you tell me whats is wrong, please?

    Lucio

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter luciojmartinez

    (@luciojmartinez)

    I saw a repetition. Te code in the page is now

    [table id=3 highlight=”TOTS” highlight_full_cell_match=”false” datatables_columnfilterwidgets=true datatables_columnfilterwidgets_exclude_columns=1,4,5,6,7,8 /]

    But it’s the same. doesn’t work

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Are you sure that you installed AND activated the Cell Highlight Extension as a WordPress plugin?

    Regards,
    Tobias

    Thread Starter luciojmartinez

    (@luciojmartinez)

    Hi,

    Yes. I have uninstalled, installed again, activate and the same. Nothing happens.

    regards

    Lucio

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    If possible, I’d like to take a direct look at this on your site. Could you therefore please get in touch via email (the address is in the main plugin file “tablepress.php”)? That way, I can investigate this directly. Thanks!

    Regards,
    Tobias

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for the email! I was now able to take a look and found the cause:
    Probably from copy/paste, some quotation marks were wrong, but this was not really visible in the “Visual” editor. I therefore switched to the “Text” editor and then replaced them with regular ones, i.e. I replaced with ".

    Additonally, the CSS needed to be changed to

    .tablepress .highlight-tots {
      background-color: #fcfc03 !important;
    }

    so that the highlighting is working now 🙂

    Regards,
    Tobias

    Thread Starter luciojmartinez

    (@luciojmartinez)

    Hi.

    Thak you very much for all it works great!

    Another question. Is possible to highlight more than a word simultaneously. I want that if I put a wordt takes a colour but if I put another different word it takes another colour.
    I was triying repeating the instruction or adding with color or semicolon to the instruction in the page but doesn’t work. Only highlight the first word.

    Regards

    Lucio

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi Lucio,

    yes, this is possible. Just combine the words with || (logic OR connector), like
    [table id=1 highlight="one||two||three" /]

    Regards,
    Tobias

    Thread Starter luciojmartinez

    (@luciojmartinez)

    Hi,

    Thanks again. All it’s working fine.

    Regards

    Lucio

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi Lucio,

    great! Thanks for the confirmation!

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

    Hi Tobias,

    I’ve only just found and started experimenting with your plugin – it looks really nice!

    To continue this post’s idea, is it possible to not only automatically highlight a cell’s colour from its contents, but to increase that cells row height too, please? E.g., if the keyword is ONE and a cell has ONE in it, can only that row be green and double in row height?

    (I know I can change individual row heights with the CSS options, but I want to avoid that and have one global solution if possible, please.)

    Thanks,
    Steve

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi Steve,

    sure, increasing the row height is possible as well. This would just be a matter of using the correct CSS code, like

    .tablepress .highlight-one {
      background-color: #00ff00 !important;
      height: 80px;
    }

    Regards,
    Tobias

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Tablepress: Conditional colours in cells’ is closed to new replies.