• Resolved jamiejnll

    (@jamiejnll)


    I’m having trouble getting the DataTables FixedHeader plugin to work. I’m not exactly sure how to edit the shortcode.

    I’ve looked at other strings and haven’t had any luck with those solutions.

    Any help is appreciated!!

    • This topic was modified 7 years, 6 months ago by jamiejnll.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author samsk

    (@samsk)

    Should work with ‘fixedHeader: true’.

    [wp-datatable id="ID"]
        paging: false,
        responsive: true,
        search: true,
        //.. and more - see https://datatables.net/reference/option for full reference
    
        // enable fixed header
        fixedHeader: true,
    
    [/wp-datatable]
    • This reply was modified 7 years, 6 months ago by samsk.
    Thread Starter jamiejnll

    (@jamiejnll)

    Thank you for the response! Where exactly should I add “fixedHeader: true” ? I’m new to WordPress and can’t quite figure this out.

    Thread Starter jamiejnll

    (@jamiejnll)

    @samsk – I still have yet to figure this out. Could you direct as to where I need to add “fixedHeader: true”?

    Plugin Author samsk

    (@samsk)

    There is an example in my previous reply showing how to use fixedHeader.
    Please, read datatables documentation, before asking.

    Thread Starter jamiejnll

    (@jamiejnll)

    @samsk Wow! I’m sorry you assumed that I didn’t read the original information you replied with. As I stated above, I’m new to WordPress and am having a hard time figuring this out. I’m sorry that I’m not smart enough to read this information and understand it completely. The techy language is usually over my head but, nevertheless, I’ve still been tasked with this. I actually read quite a bit of information from DataTables.net and I couldn’t find anywhere where it says “where” to enter this coding in WordPress. I don’t see anywhere in WordPress where it refers to DataTables…except in the FixedHeader plugin. Do I just edit the plugin? Or maybe I need to download another plugin? Or download something else?

    If you aren’t up to the task of guiding me, I totally understand. Just let me know.

    Plugin Author samsk

    (@samsk)

    See my code example in first reply.
    Once again:

    [wp-datatable id="ID"]
        paging: false,
        responsive: true,
        search: true,
        //.. and more - see https://datatables.net/reference/option for full reference
    
        // ENABLE FIXED HEADER <================================
        fixedHeader: true,
        // =====================================================
    
    [/wp-datatable]

    Datatables is configured within plugin tags. This is an advanced plugin for advanced users, sorry no GUI for configuring it – Datatables framework is too powerful and complicated for having a simple gui.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Fixed Table Header’ is closed to new replies.