• Resolved gphatch

    (@gphatch)


    since the latest update to TablePress, the sorting arrows that appear at the top of my table columns have re-appeared, despite my having put in place custom CSS to remove them (while maintaining the ability to sort), per previous solutions shared here.

    Were there any changes to the classes or other identifies that would render the older custom CSS no longer usable? What would be the fix?

    thanks,

    G

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

Viewing 11 replies - 16 through 26 (of 26 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    As this table is using DataTables, we’ll have to be a little bit more strict in the CSS. Please try

    .dataTables_wrapper .tablepress-id-10 {
      width: auto;
      margin: 0 auto 1em !important;
    }

    Regards,
    Tobias

    Thank you so much Tobias. Things look much better now!

    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!


    habe es jetzt mit einigen Syntax-Versionen (leider vergeblich) versucht, die Sortier-Pfeile in nur einer Spalte (in diesme Fall bei “DATEIANHANG”) zu entfernen:

    http://www.wolfgang-schmidtke.de/sammlung

    Gibt es da bitte eine Lösung?

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    just hiding the sorting arrows is possible with this “Custom CSS” in this example:

    .dataTables_wrapper .tablepress-id-4 thead .column-3:after {
    	content: "";
    }

    However, what you actually want is to turn off sorting in that column entirely. So, the better solution is to paste

    "columnDefs": [ { "orderable": false, "targets": 2 } ]

    into the “Custom Commands” (“Eigene Befehle”) text field on the “Edit” screen of the table. The 2 in that code indicates the third column, as counting starts from 0 here.

    Regards,
    Tobias

    HI Tobias,

    grest – that was difficult. I understand:

    I use both solutions here(secondf table “teilgenommen”:
    http://www.wolfgang-schmidtke.de/konzerte

    The second solutiion is better – but now there is the problem with the 2px (row DATUM).

    Above the camera-Icon i put the first solutaion. Of coure I can “klick” there – but that looks nice.

    Thanks a lot!

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    ah, this Firefox issue with the borders again…
    Yeah, then the first solution is better on your site.

    Best wishes,
    Tobias

    Hi Tobias,

    Sorry to bug you again, but I’m having an issue with the changes we made there for the mobile version of the site.

    At the moment, everything looks fine on the pc version but now chart data is coming up if you check out this for example:

    http://procomputergambler.com/nfl-2/

    can check how it looks on mobile via:
    http://mobiletest.me/iphone_5_emulator/#u=http://procomputergambler.com/nfl-2/

    Thanks again.
    Tom

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi Tom,

    can you please be more specific here? I’m not exactly sure that I understand what exactly the issue is. Are you refering to the missing responsiveness?

    Regards,
    Tobias

    If you look at a table on a pc, >1 row comes up.
    If you look at a table on a phone, 1 row comes up (plus the header) instead of say 10 rows.

    Never mind Tobias. It looks like my developer fixed it. Sorry to bother you…it must have been something unrelated to tablepress.

Viewing 11 replies - 16 through 26 (of 26 total)

The topic ‘Removing column sorting arrows’ is closed to new replies.