WordPress.org

Ready to get started?Download WordPress

Forums

TablePress
[resolved] Rearranging the search field, filters and pagination (4 posts)

  1. araykov
    Member
    Posted 9 months ago #

    Hey Tobias,

    I am still fascinated by your plugin. A great and powerful tool.

    For my webpage I need to rearrange the order of the search/filtering fields. I want to have the search field coming on top, then followed by the filters from the respective widget underneath and then the pagination tool can stay where it is (right on top of the table).

    Could you please help me with this one?

    Thanks a bunch :)

    Cheers,
    Andrey

    http://wordpress.org/plugins/tablepress/

  2. TobiasBg
    Member
    Plugin Author

    Posted 9 months ago #

    Hi Andrey,

    thanks for your question.

    I haven't tested it, but please try changing the line

    $parameters['sDom'] = '"sDom": "Wlfrtip"';

    to

    $parameters['sDom'] = '"sDom": "fWlrtip"';

    in the file "tablepress-datatables-column-filter-widgets.php" of the ColumnFilterWidgets Extension.
    This should move the search to the top. The pattern follows the sDom parameter for DataTables, as explained at http://datatables.net/usage/options#sDom

    Additionally, you might then want some "Custom CSS" like

    #tablepress-123_filter {
      float: left;
    }

    to move the search to the left. (123 is the table ID.)

    Regards,
    Tobias

  3. araykov
    Member
    Posted 9 months ago #

    Awesome!

    Thanks Tobias! It worked as you suggested :)

    Cheers,
    Andrey

  4. TobiasBg
    Member
    Plugin Author

    Posted 9 months ago #

    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!

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.