• Resolved froelickj

    (@froelickj)


    I installed the plugin DataTables Fixed Header to make my header stick for a large table I have. The plugin is working after adjusting the table short code to include “datatables_fixedheader=”top” but The header is right at the top of the page, and I’m wondering if there’s a way to keep the header fixed but have it lower on the page so it doesn’t look so jammed in there. Can I keep the header fixed but keep the table lower on the page and not go all the way to the top?

    https://ww.wp.xz.cn/plugins/tablepress/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    There is another parameter for this Shortcode that can be used to define an offset from the top:

    [table id=123 datatables_fixedheader=top datatables_fixedheader_offsettop=60 /]

    Regards,
    Tobias

    Thread Starter froelickj

    (@froelickj)

    Hi Tobias!

    Thank you for such a quick and helpful response. This worked, but he header stays lower, but as you scroll down, the table can be seen above the header. I guess I was hoping the entire table would be offset from the top, not just the header, but is that possible?

    Thank you!

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    yeah, the idea of this is that the script can take into account a fix navigation bar at the top of the screen.

    Unfortunately, I’m not aware of a solution where the entire table has an offset, sorry 🙁
    You could maybe check this on the webpage of the FixedHeader JS script at http://www.datatables.net/

    Regards,
    Tobias

    Thread Starter froelickj

    (@froelickj)

    No problem, thank you so much for this great plugin!

    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!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘DataTables Fixed Header Margins’ is closed to new replies.