• Resolved ossimuso

    (@ossimuso)


    Hi Tobias,

    Somehow this stopped working, it used to work fine. Now if I hold shift and left click two column headers the multiple column sorting doesn’t work. I am using this shortcode:
    [table id=6 datatables_counter_column=”true” responsive=”phone” /]
    And I have this custom CSS in plugin options:
    .dataTables_filter {
    padding-top: 1px;
    }

    .dataTables_filter {
    margin-bottom: 5px;
    }

    .tablepress th,
    .tablepress td {
    padding: 5px !important;
    }

    .tablepress thead th,
    .tablepress tfoot th {
    background-color: #606060 !important;
    color: #ffffff !important;
    border: 1px solid #000000 !important;
    }

    .tablepress th,
    .tablepress td {
    border: 1px solid #000000;
    }

    .tablepress-id-6.tablepress thead .sorting_asc,
    .tablepress thead .sorting_desc,
    .tablepress thead .sorting:hover {
    background-color: #ff00dc !important;
    }

    .tablepress .row-hover tr:hover td {
    background-color: #BDFE00;
    }

    .tablepress tbody td {
    font-family: Open Sans;
    font-size: 14px !important;
    color: #000000 !important;
    }

    .tablepress thead th {
    font-family: Open Sans !important;
    font-size: 16px !important;
    font-weight: bold !important;
    }

    .tablepress thead th,
    .tablepress tbody td {
    text-align: center !important;
    }

    @media (max-width: 767px) {

    .tablepress-responsive-phone thead th {
    padding: 7px;
    }

    .tablepress-responsive-phone thead .row-1 .column-1 {
    height: 20px;
    }

    }

    .dataTables_paginate a {
    color: #ffffff !important;
    }

    .dataTables_wrapper .dataTables_length label,
    .dataTables_wrapper .dataTables_filter label,
    .dataTables_wrapper .dataTables_info {
    color: #ffffff !important;
    }

    I’ve tinkered for a while but can’t seem to figure out the reason it’s not working. Do you have any ideas?

    Thanks.

    https://ww.wp.xz.cn/plugins/tablepress/

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

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Can you please post a link to the page with the table where this problem happens, so that I can take a direct look? Thanks!

    Regards,
    Tobias

    Thread Starter ossimuso

    (@ossimuso)

    Sure Tobias,

    The table is here: http://www.myfitrank.com/fitness-rankings-female-13-years/.

    Thanks.

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for the link! I just tried sorting multiple columns, by holding down “Shift” and clicking other columns, and that worked totally fine…
    Could it be browser issue?

    Regards,
    Tobias

    Thread Starter ossimuso

    (@ossimuso)

    Wow, so sorry Tobias, I should have deleted my browser cache first. Can I just ask if you could tell why the last table (POWER) on that page appears with a wider city column than the others. They all have the same table. But it appears the same in CARDIO, ENDURANCE, STRENGTH, SPEED and AGILITY. Then it’s different in POWER. I’ve tweaked things a bit but it’s always the last table.

    Thanks.

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    no problem! 🙂 Good to hear that everything is working again!

    For the column widths: I’m not really sure, but I assume that it’s related to the browser calculating the widths in a different way, somehow. The fact that the tables are initially hidden (due to the tabs) might also factor in.
    The best solution probably is to manually set the column widths, e.g. via https://tablepress.org/faq/column-widths/

    Best wishes,
    Tobias

    Thread Starter ossimuso

    (@ossimuso)

    Great. That worked well. Thanks Tobias.

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! 🙂 Good to hear that this helped!

    Best wishes,
    Tobias

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

The topic ‘Multiple sorting’ is closed to new replies.