• Resolved sunkid

    (@sunkid)


    Hi,

    is there anyway to make the table a vertical header instead? I have many columns with single numbers in it, and the long table would break my layout.

    And is it possible to make a default table to use for multiple posts – coz the content of the table changes all the time.

    Thanks for any hints.

    https://wordpress.org/plugins/tablepress/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    You could try rotating the text in the header cells with some CSS. There are some approaches for this, but results are not that good:
    https://wordpress.org/support/topic/vertical-column-header-text-rotate-90-degrees?replies=4

    I’m not sure what you mean with “default table” here. Do you mean something like a placeholder? Then, I’d suggest that you create that once and simply re-use the Shortcode.

    Regards,
    Tobias

    Thread Starter sunkid

    (@sunkid)

    Oh, thats a quick response 🙂

    Yeah I found that thread too but am looking for better alternatives. The headers will have to be vertical, coloured and bold. Example:

    <table class="style1">
    <thead>
    <tr>
    <th>Data</th>
    <th></th>
    </tr>
    </thead>
    <tbody>
    <tr>
    <th>Strecke:</th>
    <td>16 km</td>
    </tr>
    <tr>
    <th>Schwierigkeit:</th>
    <td>middle</td>
    </tr>
    <tr>
    <th>Region:</th>
    <td>SE</td>
    </tr>
    <tr>
    <th>Altitude:</th>
    <td>~ 300-500 m</td>
    </tr>
    <tr>
    <th>technik:</th>
    <td></td>
    </tr>
    <tr>
    <th>Aufstiege:</th>
    <td>xxx</td>
    </tr>
    <tr>
    <th>Einkehr- & Rastmöglichkeiten::</th>
    <td>Gasthof </td>
    </tr>
    <tr>
    <th>Fee:</th>
    <td>keine</td>
    </tr>
    <tr>
    <th>Parkgebühr:</th>
    <td></td>
    </tr>
    <tr>
    <th>xxxx:</th>
    <td>nicht bekannt</td>
    </tr>
    <tr>
    <th>Besonders:</th>
    <td></td>
    </tr>
    </tbody>
    </table>

    Default table = I create one table with default headers, then use it for differant posts with each a differant content value. I want to avoid having to create a new table for each post that I write.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    that’s the only solution for vertical headers that I’m aware of at the moment. Sorry 🙁

    For the default table: You could then maybe maintain one large table and use the Row Filter Extension from http://tablepress.org/extensions/row-filter/ to show only the relevant rows on the posts. With that, you could maintain one large table with all entries, and add a hidden column at the end (invisible to the user). In that column, you could use certain keywords (any string that you like) as the filter term. Then, you could use the Extension to show only those rows from the table that have a certain keyword.

    Regards,
    Tobias

    Thread Starter sunkid

    (@sunkid)

    Hmm, unfortunately the extension doesn’t come in free. I’d really love to pay for something which comes out of the box… but not for something which I have to fix up first.

    Thanks very much for your quick response and help, Tobias!

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    not sure what you mean. The Extension can be downloaded and used for free, I’m only asking for a donation if you like it.

    Regards,
    Tobias

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Vertical Header’ is closed to new replies.