• Resolved creekdweller

    (@creekdweller)


    I want to recreate in TablePress a table that has more than one header row. Is it possible to designate a row in the middle of a table as a header row? I can work around this by splitting the table into two, but I’m wondering if this is necessary.

    Also, while this is not currently an issue for me, I’m wondering if other cells such as the first column can be <th> instead of <td>.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi!

    Thanks for your post and sorry for the trouble!

    Unfortunately, designating a row in the middle of a table as another header row is not directly possible like that, as the HTML standard does not support that. You could only do what you are doing now already: Give that row the same styling/colors as the actual header rows.

    Turning the first column into <th> elements is however possible: Just add another configuration parameter to the Shortcode or the table block’s Advanced settings in the block editor:

    [table id=123 first_column_th=true /]

    Regards,
    Tobias

    Thread Starter creekdweller

    (@creekdweller)

    Thanks for the prompt reply. Interesting, you’re seeing that row as <td> with the same styling as <th>? That’s not what I coded, and not what I’m seeing in devtools. You’ve given me a simple solution, though, so it doesn’t matter.

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    well, yes, you are using <th> elements for that extra header row, but it’s still part of the <tbody> and not an extra <thead>, for example. That’s what I meant here ??

    Good to hear that my suggestion will help though!

    Best wishes,
    Tobias

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

    Thread Starter creekdweller

    (@creekdweller)

    Good point! I created this table many years ago, when I knew even less about html/css than I do now. I’ll rethink it.

    It doesn’t seem like TablePress needs another 5-star rating, but I gave one anyway, along with a review saying it turns one of WordPress’s greatest weaknesses into a strength.

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks a lot, I really appreciate it ??

    Best wishes,
    Tobias

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘other than top or bottom’ is closed to new replies.