• Resolved itvatis

    (@itvatis)


    Hello,

    I am quite close to losing my sanity with this so any help would be appreciated.

    I have been struggling for hours trying to get my table to show more than 1 of the changes I add with my custom CSS.

    Here is the code I currently have:

    .tablepress.movelist_class th {
    	background-color: #d31306;
    	color: white;
    }
    
    .tablepress.movelist_class thead {
    	font-family: teko;
    }

    I started by changing the background color, saved then previewed the result and it worked. Once I added the new font-family, saved then previewed, nothing changed. I moved the font-family to thead, still nothing. Added color: white, nothing.

    I have read about caching issues but I do not have a caching plugin nor use Cloudflare. That aside, I installed the TablePress Turn Off Caching and still nothing.

    What’s even stranger is that I have checked if it looks different on my phone and it has accepted the white font color but not the background color…

    What am I doing wrong here?

    The page I need help with: [log in to see the link]

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

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    The reason for this essentially is that your CSS code is not specific enough and therefore doesn’t have the “power” to override the TablePress default styling.

    This should achieve what you want:

    .tablepress.movelist_class thead th {
    	background-color: #d31306;
    	color: #ffffff;
    	font-family: Teko;
    }

    Also see https://tablepress.org/faq/change-background-color-table-head-row/ if you want to change the colors for the sorted-on columns.

    Regards,
    Tobias

Viewing 1 replies (of 1 total)

The topic ‘Custom CSS not updating’ is closed to new replies.