Forums

TablePress
[resolved] Dark background on tables (10 posts)

  1. ARToinet
    Member
    Posted 4 months ago #

    Hi there,

    Can you please tell me if it is possible to change the background on the tables to a dark color? If so, how can I do that?

    Thanks!
    ARToinet

    http://wordpress.org/extend/plugins/tablepress/

  2. TobiasBg
    Member
    Plugin Author

    Posted 4 months ago #

    Hi,

    thanks for your question. This is possible with some CSS code. Please try adding

    .tablepress tbody td {
      background-color: #ff0000;
    }

    to the "Custom CSS" textarea on the "Plugin Options" screen of TablePress.
    This will change the background color of all tables.
    For more examples, please see the plugin FAQ page at http://tablepress.org/faq/

    Regards,
    Tobias

  3. ARToinet
    Member
    Posted 4 months ago #

    I have added the code, but unfortunately it did not work. The background is still light.

    Regards,
    ARToinet

  4. TobiasBg
    Member
    Plugin Author

    Posted 4 months ago #

    Hi,

    can you then please post the link to the page with your table? I will gladly take a look then. Most probably, we'll just need some more specific code.

    Thanks,
    Tobias

  5. ARToinet
    Member
    Posted 4 months ago #

    Hi Tobias,

    Many thanks for your quick reply!

    This is the link to the page: http://www.artoinet.com/test-page/

    Hope you can help :)

    Kind regards,
    ARToinet

  6. TobiasBg
    Member
    Plugin Author

    Posted 4 months ago #

    Hi,

    thanks for the link.
    You'll just have to uncheck the "Alternating row colors" checkbox on the table's "Edit" screen, and the color change will work as expected.
    Then just change the color value to what you want.

    Regards,
    Tobias

  7. ARToinet
    Member
    Posted 4 months ago #

    WOW, thanks, that was easy!

    Now I have two more questions:

    1. Can I change the header row to the same color as the background of the table? It's still a light color.

    2. Is there a way to change the hover color, when the cursor hovers over a row?

    Thanks!
    ARToinet

  8. TobiasBg
    Member
    Plugin Author

    Posted 4 months ago #

    Hi,

    yes, this is both possible. Please take a look at the FAQ page at http://tablepress.org/faq/ where you will find exactly these questions answered.

    Regards,
    Tobias

  9. ARToinet
    Member
    Posted 4 months ago #

    Hi,

    Brilliant! Thanks, Tobias!

    Regards,
    ARToinet

  10. TobiasBg
    Member
    Plugin Author

    Posted 4 months ago #

    Hi,

    sure, no problem, you are very welcome!

    Best wishes,
    Tobias

    P.S.: In case you haven't, please rate the plugin here in the plugin directory. Thanks!

Reply

You must log in to post.

About this Plugin

About this Topic