WordPress.org

Ready to get started?Download WordPress

Forums

TablePress
[resolved] Add background image to table (4 posts)

  1. pebe
    Member
    Posted 1 year ago #

    I only see insert image button under table content that popup text
    I've to choose cell before add image that means add image to 1 cell ,right?
    but I'd like to know how to add background image to table ?

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

  2. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    thanks for your question.

    Yes, that's correct. With that button, you can only add an image into a table cell.
    To use an image as a background image for a table, you will have to use CSS code. Please try adding

    .tablepress-id-123 {
      background: url(http://www.example.com/path/to/image.jpg);
    }

    to the "Custom CSS" textarea on the "Plugin Options" screen of TablePress. You will have to adjust the table ID and the URL of the image in that code. Additionally, you will want to uncheck the "Alternating row colors" and "Row Hover Highlighting" checkboxes on the table's "Edit" screen.

    Regards,
    Tobias

  3. pebe
    Member
    Posted 1 year ago #

    Thanks, Tobias

  4. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    sure, no problem, you are very welcome!

    Best wishes,
    Tobias

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic