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

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    That’s correct, and the best way to fix this is to add an offset to the fixed header. Fortunately, the Extension is already prepared for this. Just add an extra parameter to the used Shortcode, like this:

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

    The number (40 in this example) is the offset in pixels, i.e. the height of the fixed nav bar of the theme.

    Best wishes,
    Tobias

    Thread Starter Bob

    (@bobschecter)

    Yep – that did it. Thanks again, and best wishes to you as well.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    great! Thanks for the confirmation that this worked!

    Best wishes,
    Tobias

    Thread Starter Bob

    (@bobschecter)

    actually it works on some pages, and not on others. I’ve tried to see what makes them different, but as yet haven’t figured it out. I’ll keep looking.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    ok, that’s weird. Are you using the latest version of the Extension from http://tablepress.org/extensions/datatables-fixedheader/ ?
    Are you getting any JavaScript errors in the JS error log console in the browser?

    And thanks for even another donation, I really appreciate your continued support!

    Regards,
    Tobias

    Thread Starter Bob

    (@bobschecter)

    No errors. Yes, just downloaded it from your website, so I assume it’s the latest version. Very odd indeed.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    ok, thanks for checking!
    If you still can’t solve, please post a link to a page with a table where it’s not working and I’ll take a look!

    Regards,
    Tobias

    Thread Starter Bob

    (@bobschecter)

    Here’s a page that has it and it’s not working.

    http://dmiworks.com/lantana/kimley-contract/

    Thread Starter Bob

    (@bobschecter)

    Ah, stupid me. I had none of the Javascript items checked, which I assume is required in order to call up the JS library. Thanks.

    Thread Starter Bob

    (@bobschecter)

    Ah, now I’m getting an error message on the page.

    DataTables warning table id=tablepress-6 – Requested unknown parameter ‘4’ for row 0. For more information about this error, please see http://datatables.net/tn/4.

    Going to see if I can go to that url and find out what’s wrong.

    Thread Starter Bob

    (@bobschecter)

    Seems if you use #colspan# it will turn off the JS Library. Says you can’t use the column span in a table with combined cells (whatever that means)

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi Bob,

    thanks for all those hints.
    This does make sense now. The #colspan# keyword in a table is used to merge/combine cells in two or more columns. Unfortunately, the DataTables JS library does not suppor tables that have such combined cells (as it needs separate cells for the features that it adds). That’s where the error message comes from. Now, the FixedHeader Extension uses JavaScript code that directly depends on the DataTables JS library, and thus it can also only be used in tables without any merged/combined cells.

    You will therefore have to decide: If you want to use the JS features (including FixedHeader), you must remove all #colspan# and #rowspan# from the table. Otherwise, you’ll have to turn off the “Use DataTables” checkbox.

    Regards,
    Tobias

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Fixed Header with Fixed Nav Bar’ is closed to new replies.