Site logo

Archived topic

Generateblock Table Header and font color

3 replies · Started by Anthony on June 23, 2021

Viewing posts 1–4 of 4

Hello,

I am hoping I can get some help with the following that I can't seem to find an answer to.

I am using generatepress with generateblocks and created tables through my post pages.

The question is can I change just the header color and the header text by adding some CSS to all the tables I have created? I want all of them to have a blue header with white text.

An example would be: https://mobilitymedicalsupply.com/best-wheelchair-trays-in-2021/

You can see I have two tables using stripes but the header section is white with black text. I want to change those to blue and white text.

Thanks for any help.

Hi Anthony,

I don't see any tables built with Generateblocks, are you referring to these 2 tables built with wp table block?
https://www.screencast.com/t/V96Wplsl

If so, try this CSS:

figure.wp-block-table.is-style-stripes > table > thead > tr {
    background-color: blue;
    color: white;
}

Change the whiteand blueto the color code you want to use.

Let me know :)

Hi Ying. yes, this worked perfectly. Thank you again. And sorry it was built with WP table block. Thanks again for the help.

You are welcome :)

This archived topic is closed to new replies.