WordPress.org

Forums

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

  1. ARToinet
    Member
    Posted 2 years 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 2 years 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 2 years 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 2 years 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 2 years 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 2 years 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 2 years 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 2 years 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 2 years ago #

    Hi,

    Brilliant! Thanks, Tobias!

    Regards,
    ARToinet

  10. TobiasBg
    Member
    Plugin Author

    Posted 2 years 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!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • TablePress
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic