WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Problems with changing color in table-header

[Resolved] Problems with changing color in table-header

  • Hi Tobias,

    unfortunately I’m not very familiar with creating CSS, so I came around here to search for an answer.

    I’ve tried to change the color in my table-header from blue to #cccccc;
    so I used the following code in the custom-css box:

    .tablepress th {
    		background-color:#cccccc;
    	}

    But it doesn’t work. Additional I’d like to have a hover-effect matching with my navigation-menu. So I would like to change the following effects:

    Now:
    Text-Color: #000000
    BG-Color: #something light blue

    To:
    Text-Color no changes
    Background-Color: #cccccc

    And on Mouse over:

    Now:
    Text-Color: #000000
    Background-Color: #something darker blue

    To:

    Text-Color: #ffffff
    Background-Color: #cc0000

    Do I have to create and use special button-images or is it possible to simply change the code?

    Kindest,

    Nina

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

Viewing 15 replies - 16 through 30 (of 30 total)
  • thanks very much Tobias you’re very kind

    Plugin Author TobiasBg
    Participant

    @tobiasbg

    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!

    Hi Tobias,

    it’s me again. Would you please so nice and cute to tell me how to change the color of those “next” and “previous” buttons?
    I’ve been searching via ftp in every directory contained in /wp-content/plugins/tablepress, from “admin” to “views” but I couldn’t find the images for those blue arrows.

    Thx a lot and hope you had fun with my donations. 😉

    Kindest,

    Nina

    Plugin Author TobiasBg
    Participant

    @tobiasbg

    Hi Nina,

    thanks for your question!

    Those arrows are no longer loaded from images, but from an icon font. See https://tablepress.org/release-announcement-tablepress-0-9-rc/ for more on this.
    To change their color, you can now use CSS code, which you can find in this post: http://wordpress.org/support/topic/css-pagination?replies=20#post-4198024

    Regards,
    Tobias

    Hi Tobias,

    thanks for answering faster than light, as usual. 😉
    Changing the colors was so very easy now.

    Best wishes,

    Nina

    Plugin Author TobiasBg
    Participant

    @tobiasbg

    Hi Nina,

    no problem 🙂 You are very welcome!
    Great to hear that this helped!

    Best wishes,
    Tobias

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

    LasPalmas
    Member

    @laspalmas

    Hi Tobias,

    I’ve tried everything you say here, but it’s not working properly.

    This is the website page:

    http://www.costa-del-tennis.com/tennis-camps-barcelona-spain/

    I tried adding #content before on the plugin options (custom css seccion) but nothing..I can’t change the font size either.

    Do you know if I’m doing something wrong? Thank you so much!

    Best!

    Plugin Author TobiasBg
    Participant

    @tobiasbg

    Hi,

    thanks for your post, and sorry for the trouble.

    Now, I’m a little bit confused. The link that you posted does not contain a table, from what I can see? Where you already able to solve the problem, or does it still exist? Can you then provide some more details, please? Thanks!

    Regards,
    Tobias

    LasPalmas
    Member

    @laspalmas

    I’m sorry Tobias. I put it down because I wasn’t sure when you would respond. It’s back there! Let me know whenever you can.

    Thank you!

    Plugin Author TobiasBg
    Participant

    @tobiasbg

    Hi,

    thanks!

    So, am I correct with the assumption, that you want that table row to be red? And do you really want the hover effect?

    So, my suggestion is: Uncheck both the “Alternating row colors” and “Row Highlighting” checkboxes on the table’s “Edit” screen. Then, replace the current “Custom CSS” with just this:

    .tablepress-id-1 tbody td {
      background-color: #aa1414;
    }

    Regards,
    Tobias

    LasPalmas
    Member

    @laspalmas

    Hi Tobias,

    Thank you so much for your response. I did what you suggested, but I wanted to keep the hover effect. If I check the Row Highlighting option, the background I chose changes. I just chose red in order to see the different. It doesn’t matter the color. I just wanted to be able to choose a background color and a hover color.

    I also tried adding text-align: center; but it didn’t work for me. Do you know why?

    This is the CSS I have:

    .tablepress-id-1 tbody td {
    background-color: #e6e3e3;
    text-align: center;
    }

    .tablepress-id-1 .row-hover tr:hover td {
    background-color: #cccaca;
    }

    .tablepress-id-1 {
    text-align: center;
    }

    Thank you!

    LasPalmas
    Member

    @laspalmas

    Plugin Author TobiasBg
    Participant

    @tobiasbg

    Hi,

    thanks for the clarification. From what I can see, the centering and the original background color works just fine. The hover color is currently not working, because you have unchecked the “Row Highlighting” checkbox.

    Regards,
    Tobias

    LasPalmas
    Member

    @laspalmas

    It’s perfect now. Thank you so much!

    Plugin Author TobiasBg
    Participant

    @tobiasbg

    Hi,

    no problem, you are very welcome! Great to hear that this helped!

    Best wishes,
    Tobias

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

Viewing 15 replies - 16 through 30 (of 30 total)
  • The topic ‘[Resolved] Problems with changing color in table-header’ is closed to new replies.