• Resolved cloudduster

    (@cloudduster)


    hello tobias,

    is it possible to disable the hover color in css? i have more than a thousand tables already. i can’t edit them individually.

    pls help.

    thanks.

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

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Your best chance would then to define CSS that gives the regular background color CSS a higher priority, e.g. by adding the !important flag.
    Do you maybe have a link to an affected table?

    Regards,
    Tobias

    Thread Starter cloudduster

    (@cloudduster)

    Please see this https://goo.gl/6sLHDR

    Also, I’d also like to remove the background color..

    so no hover, no background color.

    i already did that using :transparent in the header, but i don’t know how to do it in the rows.

    thank you.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    the code would be very similar:

    .tablepress tbody td {
    	background-color: transparent !important;
    }

    (By the way, I would recommend to put all TablePress-related CSS code into the “Custom CSS” text field of TablePress.)

    Regards,
    Tobias

    Thread Starter cloudduster

    (@cloudduster)

    thank you for this tobias,

    (By the way, I would recommend to put all TablePress-related CSS code into the “Custom CSS” text field of TablePress.)

    actually, i did that many times in the past and just today, but it seems like there are forces in nature LOL that don’t respect the stuff that i put into the custom css of tablepress. that’s why i ended up putting all of in the theme’s very own custom css section.

    this confuses me a lot because some css get executed while some don’t.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    the reason why some CSS works and other doesn’t simply is CSS conflicts. This for example happens when TablePress, your “Custom CSS” or your theme CSS target the same element. Then, the CSS selector with the higher priority wins. If the priorities are the same, the one that is defined later wins.

    This can indeed be annoying, but usually it’s simply solved, e.g. with the !important keyword.

    Regards,
    Tobias

    Thread Starter cloudduster

    (@cloudduster)

    thank you for the input tobias.

    i’ll find time to clean my css and gradually move tablepress css to its own custom css field where they belong.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    yes, that’s a good plan! ??

    Best wishes,
    Tobias

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘disable hover color for all tablepress’ is closed to new replies.