• Resolved patrickkarl

    (@patrickkarl)


    Hallo,

    ich würde gerne eine Tabelle einpflegen mit dem Shortcode [table id=2 datatables_columnfilterwidgets=true /]

    Hauptmaske TablePress – Funktion der DataTables-JavaScript-Bibliothek – Filter/Suche aktiviert damit nur Ergebnisse angezeigt werden die ich per Dropdown ausgewählt habe.
    Jetzt steht aber das “Suchen” Feld noch da. Kann dieses ausgeblendet werden?
    Ich habe versucht über Einstellungen – Zusatz-CSS den Code:
    .tablepress-id-N filter {
    display: none;
    }
    zu verwenden, aber es geschieht dann nichts.

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter patrickkarl

    (@patrickkarl)

    Hello,

    I would like to create a table with the shortcode [table id=2 datatables_columnfilterwidgets=true /]

    Main mask TablePress – Function of the DataTables-JavaScript-Library – Filter/Search activated so that only results which I have selected by dropdown are displayed.
    But now the “Search” field is still there. Can it be hidden?
    I have tried the code via Settings – Additional CSS:
    .tablepress-id-N filter {
    display: none;
    }
    but then nothing happens.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    You are very close! Please try this “Custom CSS”:

    #tablepress-123_filter {
      display: none;
    }

    (with the correct table ID).

    Regards,
    Tobias

    Thread Starter patrickkarl

    (@patrickkarl)

    Great! That worked! Thanks a lot!

    Is there also a possibility to hide the table and only show results? The table should become a kind of configurator for a product to get the right productnumber.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    unfortunately, I don’t know a solution for that, sorry 🙁

    Something similar to this (inverting how the filter works) is possible using the normal search, see https://wordpress.org/support/topic/start-with-search-bar-only/
    However, this does not work in combination with the ColumnFilterWidgets.

    Regards,
    Tobias

    Thread Starter patrickkarl

    (@patrickkarl)

    okay, no Problem. I think we can solve this another way. one last question. 🙂
    Is it possible to adjust the size of the drop down fields?

    Regards
    Patrick

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi Patrick,

    yes, you can use CSS like

    .column-filter-widgets .column-filter-widget select {
      width: 200px;
    }

    for that.

    Regards,
    Tobias

    Thread Starter patrickkarl

    (@patrickkarl)

    Oh Really great!! Just what we were looking for!
    I’m really sorry, can I ask you one more question?
    Would it be possible to make the dropdown fields underneath each other instead of side by side?

    You deserve really big praise for your great fast support!

    Best regards
    Patrick

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi Patrick,

    for that, please try

    .column-filter-widgets .column-filter-widget {
      float: none;
    }

    Regards,
    Tobias

    Thread Starter patrickkarl

    (@patrickkarl)

    Works great! Thank you so much for your help!! 🙂

    Plugin Author TobiasBg

    (@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!

    Thread Starter patrickkarl

    (@patrickkarl)

    Hi Tobias,

    Another concern.
    I use the responsive function of the table and this seems to work differently on Chrome and Edge. The link looks normal in Chrome and on Edge the plus symbol appears which should be for reponsive ones. Unfortunately I can’t send you a link via the forum, because the site is currently not allowed to be published.

    Regards
    Patrick

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    can you then maybe send me a link via email? The address is in the main plugin file “tablepress.php”.

    Regards,
    Tobias

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Suchfeld bei Dropdownsortierung ausblenden’ is closed to new replies.