Support » Plugin: TablePress » Change colors in tables

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

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    Their Pros/Cons list is not actually a table, but you can achieve the same with a table. You will just need to add some CSS code, e.g. like this https://tablepress.org/faq/highlight-cells-or-content/

    Regards,
    Tobias

    Thank you for quick reply.

    I have right now in Tablepress_options:

    .tablepress th,
    .tablepress td {
    font-family: Verdana;
    }

    .tablepress thead th,
    .tablepress tfoot th {
    background-color: #CD853F;
    }

    This is valid for every table on my page, but for PROS/CONS I want to have different colors. And as I will have some 50 pros/cons tables – How to change CSS accordingly?

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    the code example from the link to that FAQ entry uses table-ID based CSS selectors. These will only influence one table at a time, so that your current existing code will continue to work.

    To make management of the CSS code for those 50 tables easier, I recommend introducing an “Extra CSS class” for this, like “tablepress-pro-con-table” and then follow the ideas from https://wordpress.org/support/topic/custom-css-per-table/#post-8625808

    Regards,
    Tobias

    Hi Tobias,

    In “Frontend options” I already have following “Custom CSS”:

    .tablepress th,
    .tablepress td {
    font-family: Verdana;
    }

    .tablepress thead th,
    .tablepress tfoot th {
    background-color: #CD853F;
    }

    How to add “tablepress-pro-con-table”? Simply as addition to the CSS above?

    I also don’t know how to make all this.

    Please help in easier way to a nonprogrammer…

    Thank you in advance.

    Lojze

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    not quite. Please try to follow the very similar instructions from https://wordpress.org/support/topic/table-groups/

    Regards,
    Tobias

    Hi lojze,
    you can use wordpress plugin name ultimate shortcodes. i have use this plugin if you want to check, you can check here http://3dprintingpenpicks.com/ they have more option.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    that could also be an option, but it might have other drawbacks.

    Regards,
    Tobias

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Change colors in tables’ is closed to new replies.