WordPress.org

Ready to get started?Download WordPress

Forums

TablePress
[resolved] Possible to have floating header? (4 posts)

  1. njordan1784
    Member
    Posted 1 year ago #

    Is it possible to have the header "stick" to the top of the screen when scrolling past it in the table so that it is still onscreen to be used as a reference for lower rows in the table?

    For instance, on my table: http://www.homebrewresource.com/hop-guide once you scroll past the first few rows it is impossible to know exactly what each column is without it's header visible.

    Is this possible?

    Thanks in advance!

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

  2. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    thanks for your question. You are lucky, there's an extension that achieves just that, which you can see live at http://datatables.net/extras/fixedheader/ and which I turned into a TablePress Extension.
    To use that, please install and activate https://github.com/downloads/TobiasBg/TablePress-Extensions/tablepress-datatables-fixedheader.zip just like a regular WordPress plugin.
    After that, you can change your table's Shortcode from something like

    [table id=123 /]

    to

    [table id=123 datatables_fixedheader=top /]

    to use the feature on a table.

    Regards,
    Tobias

  3. njordan1784
    Member
    Posted 1 year ago #

    Works perfectly! Thanks a ton!

  4. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    awesome, thanks for the confirmation! :-) And you are very welcome!

    Best wishes,
    Tobias

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic