• Resolved frequentmiler

    (@frequentmiler)


    I have a tablepress table that I use as one source of info for many blog pages. I’d like to be able to format the same information differently on different pages depending upon how it’s being used. For example, on one page I’d like the use the contents of a cell as a section header with a large font and no background. On another page I’d like to use the same content mixed in with other data with regular sized font

    Is that possible?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    That’s tricky. In this case, I recommend using e.g. the TablePress Extension from https://tablepress.org/extensions/table-cell-shortcode/ to get the relevant data as plain text. Then, you could add HTML code around that content for styling.

    Regards,
    Tobias

    Thread Starter frequentmiler

    (@frequentmiler)

    Thank you. That would work if there was a way to filter to the row I want rather than picking the row by row number (I do have the Row Filtering Extension). Is that possible? Even better would be if it worked with the Shortcode Filter from GET parameter Extension.

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    with those, it would not really work that well, as those Extension still return a table (even if it is just one cell). That’s much harder to style. You could then use CSS code that uses both the WordPress page ID and the TablePress table ID, like

    .page-123 .tablepress-id-456 .column-1 {
      font-weight: bold;
    }

    Regards,
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Different formatting on different pages’ is closed to new replies.