• Resolved gomez77

    (@gomez77)


    Hello,

    I have created a page with two tables. I used the class “dataTables_wrapper” to create a style rule but then I discovered that only one of the tables on my page had this wrapper div, the other did not. So my style rule did not apply to both tables as I intended. Can anyone tell me how to make sure this wrapper div is applied in all cases?

    Thanks

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.

    This wrapper div is always present if the “Table Features for Site Visitors” are enabled and in use for a site. Maybe that’s not the case for one of your tables?

    Regards,
    Tobias

    Thread Starter gomez77

    (@gomez77)

    This was my one initial thought as a possible reason, as the table with the wrapper div had the “Offer the following functions for site visitors” box checked and the other didn’t. Now having changed the second table to have the same settings as the first, it still doesn’t have a wrapper div.

    The table that doesn’t have the wrapper div does have #rowspan# – could that cause a problem?

    *Edit* when I add the functions for site visitors, they don’t actually appear on the page, even with a hard refresh.

    • This reply was modified 1 year, 8 months ago by gomez77.
    • This reply was modified 1 year, 8 months ago by gomez77.
    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for the confirmation! It’s indeed the #rowspan# that’s the culprit here: The features for site visitors require that a table does not have any connected/combined cells, which means that #rowspan# can not be used then. If it is used, the features are automatically turned off. This is why the table then doesn’t have that wrapper div.

    You would therefore either have to add a wrapper div around the table block or Shortcode manually, or use the scroll mode of the mentioned Responsive Tables feature module of the TablePress premium versions. This can add horizontal scrolling even for tables that use #rowspan#.

    Regards,
    Tobias

    Thread Starter gomez77

    (@gomez77)

    Ok, that makes sense. Thanks for your replies – I appreciate you taking the time to help me.

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    sure, no problem! I hope that you can find a good solution for your tables!

    Best wishes,
    Tobias

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘dataTables_wrapper div on some tables but not others’ is closed to new replies.