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

    (@rochesterj)

    Hi!

    I’d add some CSS to hide them to be honest. If you want the CSS way let us know.

    It’s certainly possible to do that via PHP but that will require more custom code than we can provide, unfortunately

    Kind Regards,
    -Roch

    Thread Starter S?ren Müller

    (@pattyland)

    Hi,

    I would prefer a CSS way, but as I have to hide parents if childs have certain classes I thought I have to use JS

    Greets, S?ren

    Roch

    (@rochesterj)

    I see what you mean. Indeed, JS will work better for this task as we can’t select parents via CSS only

    Kind Regards,
    -Roch

    Thread Starter S?ren Müller

    (@pattyland)

    Update: My solution from my first post does not work on small viewports. Here is an updated version:

    jQuery("div.sp-scrollable-table-wrapper td.dataTables_empty, div.sp-scrollable-table-wrapper table.sp-data-table tbody:empty").parents("div.sp-template-player-list").hide();

    Roch

    (@rochesterj)

    Thanks for sharing it! ??

    Kind Regards,
    -Roch

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Hide empty player lists’ is closed to new replies.