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

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    This is possible with some CSS code. For example, add this to the “Custom CSS” textarea on the “Plugin Options” screen of TablePress

    .tablepress-id-123 th,
    .tablepress-id-123 td {
      background-color: #ff0000;
    }

    For more specific examples, you could also take a look at the TablePress FAQ at https://tablepress.org/faq/

    Regards,
    Tobias

    Thread Starter karll10

    (@karll10)

    Hi Tobias,

    That did not work, i would like to set the background of every row and column to #ABB0B3, can you please advise, thanks.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    Can you please post a link to the page with the table where this problem happens, so that I can take a direct look? Thanks!

    Regards,
    Tobias

    Thread Starter karll10

    (@karll10)

    Have you got an email address i could send to you as it is still in development?

    Thanks

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    sure! My email address is in the main plugin file “tablepress.php”.

    Regards,
    Tobias

    Hi Tobias,

    I have a similar problem.

    See https://www.bepakt.com – at the bottom under ‘TEAM’

    Tried to change the background to white, but it stays grey.

    Table ID =
    4

    Custom CSS =
    .tablepress-id-4 th,
    .tablepress-id-4 td {
    background-color: white;
    }

    I managed to get it work with the CSS code important

    .tablepress-id-4 th,
    .tablepress-id-4 td {
    	background-color: #ffffff !important;
    	border: 0 !important;
    }
    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    the reason why this didn’t work initially is that your theme also contains CSS code that sets the cell background colors. Adding that !important flag is indeed a good fix here, as that will then override the CSS again.
    Good to hear that you already found this!

    Best wishes,
    Tobias

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Set background colour’ is closed to new replies.