• Resolved mariesmc

    (@mariesmc)


    Hello Tobias

    I have multiple tables and I’d like to hide the same column in all of them, how would I do this?

    For example, I’d like to hide column-2, 4, and 6 in all tables.

    Thanks

    Marie

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

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    The best way would probably be to use the Shortcode parameter for this. When embedding a table into a post or page, just use
    [table id=123 hide_columns="2,4,6" /]
    (with the correct table ID).

    Regards,
    Tobias

    Thread Starter mariesmc

    (@mariesmc)

    Thanks Tobias, I was really over thinking it! Using this method can you search for words within the hidden columns?

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    no, columns that are hidden with this method can not be searched. If you want them to be searchable, you’ll have to use CSS code to hide them, like

    .tablepress-id-123 .column-2,
    .tablepress-id-123 .column-4,
    .tablepress-id-123 .column-6 {
      display: none;
    }

    Regards,
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Hide the same columns across multiple tables’ is closed to new replies.