• Resolved dancarl

    (@dancarl)


    Hi

    I love this plugin I just have a few issues I need to sort out and probably just my ignorance.

    I am trying to sort the columns when im on the site and it seems that they try and sort but only shows me one end, ie when i hit name it sorts to end of alphabet when i hit name again i just get blank fields? is it because I have put to many rows?

    http://www.redtagdomains.ca

    thanx Dan

    I would also like to change the text in the header so the name/price/date are all white is there a way to do that? is see this code….

    .tablepress-id-N tbody td {
    font-family: Tahoma;
    font-size: 14px;
    color: #ff0000;
    }

    would i change it like this some how?

    .tablepress-id-1 thead td {
    font-family: Tahoma;
    font-size: 14px;
    color: #ffffff;

    thanx Dan
    }

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

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

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    What you are seeing there are simply the empty rows that you have. An empty string is “smaller” than some text, which is why it is sorted to the top.
    The solution is very simple: Just delete the empty rows. If you later need more rows for table content, you can simply re-add some more.

    Regarding that font change: Yes, that’s almost correct. Besides changing tbody to thead, you’ll also have to change td to th in that line.

    Regards,
    Tobias

    Thread Starter dancarl

    (@dancarl)

    Great thanx for getting back to me so quickly, I have changed it an works great, but now it will not filter numbers over 100,000 correctly?

    Dan

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi Dan,

    good to hear that that worked!

    The issue with those numbers like “100,000” is a different one now: You are using the comma as a thousand delimiter and due to how the JS library that does the sorting works, this changes the used sorting algorithm to one for strings instead of numbers (because a comma is not a digit or period).
    To change that, you can however use a TablePress Extension. Please see http://tablepress.org/extensions/datatables-sorting-plugins/f or more information.

    Regards,
    Tobias

    Thread Starter dancarl

    (@dancarl)

    Awesome!! great work.

    Thanx you.

    Dan

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

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

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

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

The topic ‘Sorting does not seem to work’ is closed to new replies.