• Resolved ghbrodbeck

    (@ghbrodbeck)


    Hi,
    I’m a WordPress novice with basic CSS & html knowledge.
    I followed the TablePress instructions to change the BG-color and text color of my header row.

    .tablepress-id-1 thead th {
    background-color: #000000;
    font-family: Arial;
    font-size: 14px;
    color: #ffffff;
    }

    The BG works, it is black but the text color does not go to white.
    When I un-tick the option “first row = header” and style just row 1 with the appropriate css, it works fine.
    I’m using the Tempera theme and maybe there is something in the code that makes my CSS not function.
    The site I’m working on is on my computer and accessed via MAMP, so I can’t send links for you to have a look.
    Can you help, please?
    GB

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

Viewing 1 replies (of 1 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    My assumption is that your theme is setting the color with a higher priority, so we will also have to raise the priority of our code by adding the !important keyword to the color property:

    .tablepress-id-1 thead th {
      ...
      color: #ffffff !important;
      ...
    }

    Regards,
    Tobias

Viewing 1 replies (of 1 total)

The topic ‘Cannot change font color in header row’ is closed to new replies.