jamietgn
Forum Replies Created
-
Forum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] Table Title stylingTobias, gotta hand it to you for your support first off. You’re the man.
As for the custom hook:
add_filter( ‘tablepress_table_output’, ‘tp_add_div_wrapper’, 10, 3 );
function tp_add_div_wrapper( $output, $table, $render_options ) {
$output = “<div class=’tablepress-wrapper {$render_options[‘extra_css_classes’]}’>\n{$output}\n</div>”;
return $output;
}What does the “10, 3” target? Is that hook tailored to that specific support threads’ needs or is this a universal workaround and the 10,3 has nothing to do with anything in particular?
Regardless, I will try this tomorrow and let you know if it works!
Forum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] Table Title stylingI guess what I’m asking for is the syntax for custom css targeting the table-name and even the table-description as well, for specific table classes. I think I saw the syntax for targeting a table-id, but not a table-class.
I found this from another support thread that you answered:
.tablepress-table-name-id-123 {
so I tried .tablepress-table-name-tablepress-poll but that didn’t work so that’s why I tried splitting it up to
.tablepress-poll .tablepress-table-name {Forum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] Table Title stylingThe tablepress-poll is what I have in Extra-CSS class on the tables in question.
Oh dude, no worries at all! Take your time and enjoy your vacation please! I appreciate the response regardless. Look forward to hearing back from you once you return.
Anything?
Bahh just kidding, still not working as the span class won’t let me modify the actual row in the custom css.
I gave the cell/row I’m trying to modify the span of:
‘<span class=”false-header”>- REFERENCES -</span>’and in my custom css I have:
‘.tablepress .false-header {
color: #fff !important;
font-weight: bold !important;
font-size: 16px !important;
}’‘.tablepress .false-header td {
background-color: #e51837 !important;
}’but the second css doesn’t work. And when I do background-color in the first css, it just adds a highlight effect to the text, not the entire row.
Any advice?
My apologies, just read a little bit more in-depth on https://tablepress.org/faq/highlight-cells-or-content/
Just going to make a span class for each false-header row and do it that way.
Nothing to see here….. *whistles and walks away slowly*