Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your question.

    From what I can see from the documentation of the DataTables FixedHeader library, this is possible in the JavaScript code.
    However, there’s currently no way to directly use this in TablePress. Unfortunately, I’m currently quite busy and don’t have enough time to add this to the Extension within the scope of free support. However, if you are interested, we could work something out, if you would compensate me for my time. If that’s an option for you, please send me an email (the address is in the main plugin file “tablepress.php”), and I’ll take a look.

    Regards,
    Tobias

    Thread Starter captjones

    (@captjones)

    But you can do it directly by tweaking oOffset:{top:xxx}.

    I tested it and changing the offset works. You should definitely add this to the documentation of the plugin- very useful feature.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your reply.

    Can you explain where you found this option and where you have added it?
    I can only find https://datatables.net/extras/fixedheader/options#offsetTop right now, which is different and can not be used directly, right now.

    Regards,
    Tobias

    Thread Starter captjones

    (@captjones)

    Check fixedheader.min.js, should be at line 21 (oOffset).

    Take a look at jousaal.ee where I used it.

    Awesome plugin man! Rated 5 stars.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    ah, ok. So you changed it directly in the JS file. That will work of course, but be aware that it’s not a really flexible solution, as this now applies to all tables that use this feature, and that you would have to reapply this modification if the FixedHeader Extension is updated.

    Regardless, good to hear that you found a solution! And thanks for the rating, I really appreciate it!

    Best wishes,
    Tobias

    How do you fix the table headings they are off to the left of the actual text that is suppose to be listed below the heading?
    Also, how can I reduce the size of my first column so the column sizes are equal?

    See website https://www.inlivingmemory.org

    Thank you the FAQ’s on borders was very helpful.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post.

    I believe that this is caused by some CSS from your theme, that influences table column widths. Please try adding this to the “Custom CSS” textarea on the “Plugin Options” screen of TablePress as a fix:

    .tablepress .column-1 {
      width: auto;
    }

    That should actually fix both of your questions.

    Regards,
    Tobias

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    just a quick update: I’ve updated the Extension at https://tablepress.org/extensions/datatables-fixedheader/ with a new parameter for the top offset. To use that, just re-install the Extension from a fresh download and extend the Shortcode to

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

    Best wishes,
    Tobias

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Fixed header position’ is closed to new replies.