WordPress.org

Forums

TablePress
[resolved] Full Width Search Bar (4 posts)

  1. LukeJames3
    Member
    Posted 1 year ago #

    Is it possible to have the search bar the full width of the table and remove the "Show X entries" drop-down box? Any help will be much appreciated.

    https://wordpress.org/plugins/tablepress/

  2. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    thanks for your post, and sorry for the trouble.

    Yes, that's possible:
    Just uncheck the "Length Change" checkbox on the "Edit" screen of the table.
    Then, add this to the "Custom CSS" textarea on the "Plugin Options" screen of TablePress:

    #tablepress-123_filter {
      width: 100%;
    }
    #tablepress-123_filter input {
      width: 92%;
    }

    The 123 has to be changed to correct table ID (twice). Then, depending on your theme, you might have to play around with the value of 92%, to make everything fit.

    Regards,
    Tobias

  3. LukeJames3
    Member
    Posted 1 year ago #

    Thank you so much! It's all working correctly, very helpful. :)

  4. TobiasBg
    Member
    Plugin Author

    Posted 1 year 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!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • TablePress
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic