• Resolved seboujean

    (@seboujean)


    Hello Tobias,

    I have activated the filter function on my table but I would like to remove the filter option on the last column or at least hide the filter arrows on that specific cell.

    See table here (arrows are useless in the row-1, column-8) :
    https://casinogamblingpro.com/testing-filter-table/

    I tried with some CSS but it didn’t work.

    Thank you for your help and great plugin ??
    Jean

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

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    Just to be sure, you mean the sorting and not the filtering, right?
    For that, please add this to the “Custom Commands” text field on the table’s “Edit” screen:
    "columnDefs": [ { "orderable": false, "targets": [ 6 ] } ]
    The 6 refers to the seventh column, as counting starts with 0 in this code.

    Regards,
    Tobias

    Thread Starter seboujean

    (@seboujean)

    Yes, I meant the sorting. I added the code and it works perfectly ??

    You offer the best plugin and support in the WP galaxy.

    Best regards,
    Jean

    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!

    staines

    (@staines)

    Hi Tobias,

    how can I hide one specific filter? For example “Beschreibung” in this link:

    https://www.naehfrosch.de/kostenlose-schnittmuster-sammlung/

    Stefan

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi Stefan,

    thanks for your post, and sorry for the trouble.

    Just use the datatables_columnfilterwidgets_exclude_columns Shortcode parameter that is explained on https://tablepress.org/extensions/datatables-columnfilterwidgets/

    Please also make sure that you don’t have any other HTML tags around the Shortcode. For that, please switch from the “Visual” to the “Text” editor on the “Edit” screen of this page. Then, please remove all <pre> and </pre> HTML tags around the table Shortcode, so that it stands by itself on its own line.

    Regards,
    Tobias

    staines

    (@staines)

    Hallo Tobias,

    thanks for your help!!! It worked! You’ve got the best support of all WP Plugins!!! ??

    Kind regards,
    Stefan

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! ?? Good to hear that this helped!
    And thanks for the kind words! ??

    Best wishes,
    Tobias

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘hide filter on a specific column header’ is closed to new replies.