Support » Plugin: TablePress - Tables in WordPress made easy » Change the color of the columns.

  • Resolved FrenkyPohodar

    (@frenkypohodar)


    Good day.
    I discovered your plugin tablepress is handy even if it wanted to know a little css.
    And this is my problem something I’ve already found but I still do not know how to color table column.
    Change in color of the line 2-5 and 7-11 in column 1
    Extra CSS classes:
    column1
    Custom CSS:
    . tablepress-column-first row-first column-1 {
    background-color: # 5AE503;
    }
    Thank you in advance for your advice and possible assistance.

    https://wordpress.org/plugins/tablepress/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    You should not actually need an “Extra CSS class” here, so please remove that. Instead, just add this “Custom CSS” (with the table ID adjusted properly):

    .tablepress-id-123 .row-2 .column-1,
    .tablepress-id-123 .row-3 .column-1,
    .tablepress-id-123 .row-4 .column-1,
    .tablepress-id-123 .row-5 .column-1,
    .tablepress-id-123 .row-7 .column-1,
    .tablepress-id-123 .row-8 .column-1,
    .tablepress-id-123 .row-9 .column-1,
    .tablepress-id-123 .row-10 .column-1,
    .tablepress-id-123 .row-11 .column-1 {
      background-color: #5AE503;
    }

    Regards,
    Tobias

    Hi Tobias,
    I’m trying to insert in the custom CSS different types codes to change the colors of the table
    for example :
    .tablepress thead th,
    .tablepress tfoot th {
    background-color: #683B10;
    }
    just to change the background… as indicated in the FAQ
    but it doesn’t work…
    maybe it’s a problem of the theme I’m using… or with an other plugin

    site : http://perpetuumobile.fr

    Thanks in advance for your help
    Daniel (from France)

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    The code that you posted will only change the background color of a header row, but your table is not using a header row. You will therefore want to try this: http://tablepress.org/faq/change-background-color-of-a-row/

    Regards,
    Tobias

    Thanks for your quick answer…
    but it doesn’t work,

    before I contact you, I tried different codes from the FAQ … without success

    Regards
    Daniel

    Hi Tobias,
    thanks a lot for your help
    It works…
    Best regards
    Daniel

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! 🙂 Good to hear that this helped!

    Best wishes,
    Tobias

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Change the color of the columns.’ is closed to new replies.