• Resolved ktanggaard

    (@ktanggaard)


    I have used the excellent TableView a lot, and now I use it on almost any page on my recipe site to match recipes with sauces.

    At the end of a recipe, I include a shortcode to display the relevant recipes/sauces for this cut
    [table id=112 hide_columns=”1,2,4″ datatables_filter=false filter=”bearnaise” /]

    The table are +500 rows in the recipes and sauces table.

    PRINTING
    When I print from a page I can exclude ALMOST all table material by using CSS for that particular table (ID=112):

    @media print {
    /* These styles will only be used when the page is printed or saved to PDF. */
    .tablepress-id-112 {
    display: none;
    }
    .dataTables_paginate a {
    display: none;
    }
    .tablepress-table-name-id-112 {
    display: none;
    }
    }

    This will exclude the table, the title and the <Previous Next> text.

    But I can not find a way to exclude the top “Show XX entries”?

    Thanks a lot
    Karsten

    I use the latest version of WordPress and Tablepress

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

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

    (@tobiasbg)

    Hi,

    thanks for your email, and sorry for the trouble.

    For that, you can also add

    .dataTables_length {
      display: none;
    }

    to the CSS.

    Regards,
    Tobias

    Thread Starter ktanggaard

    (@ktanggaard)

    Thanks!

    It works perfectly!

    I think this is a global setting, i.i. you can not add the table ID to have it work just on a single table? Like

    .dataTables_length-id-112 {
    display: none;
    }

    Thanks,
    Karsten

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    my example would indeed be global. For a table-ID-based solution, please use

    #tablepress-112_length {
      display: none;
    }

    Regards,
    Tobias

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

The topic ‘Exclude all tablepress table material from print’ is closed to new replies.