Hi, Danielp111,
For the 1st question: do you want the links turn to red when hovering on the row? From what I can see, they turn to bold while the cursor is hovering on the row.
For the last question: yes, the CSS from theme, whether it’s a child theme or not, would override CSS from TablePress when conficting.
I don’t catch your saying of reference. so I don’t know if it’s a question , too.
Regards,
Haoxian
Hi Daniel,
thanks for your post, and sorry for the trouble.
I’m not exactly sure what you are are trying to do. Do you just want to make all cells in one column bold? That would be possible with this “Custom CSS”:
.tablepress-id-10 .column-5 {
font-weight: bold;
}
Putting the CSS into the child theme is possible, but as that would be loaded before the TablePress CSS, it might get overridden again, unless you use CSS selectors with a higher priority.
I therefore recommend to put CSS that is related to table styling into the “Custom CSS” of TablePress. TablePress will combine the CSS to one file, so there’s not even a performance penalty.
Regards,
Tobias
Thanks Tobias. Yes I didn’t explain myself about the links very well. As you correctly guessed, I just wish to control the font weight and color in the column containing the links which initially works OK using the CSS above. However, once a link has been activated, the font strength and color disappear for this link and remain absent for ever.
Thanks
DanielP
Hi Daniel,
thanks for the clarification. I can’t really reproduce this, but if you replace the CSS code that I posted above with the following, the links should not change strength/weight or color after being clicked:
.tablepress-id-10 .column-5 a {
font-weight: bold !important;
color: #21759b !important;
}
Regards,
Tobias
Thanks Tobias, now works perfectly. I guess the
!important
is important.
DanielP
Hi Daniel,
I think it’s more that we now apply the CSS directly to the link and not the cell. That and the !important give the code a higher priority.
Best wishes,
Tobias