• Resolved bwreilly00

    (@bwreilly00)


    What is the best way to change the default ‘no data available in table’ message in a league table to some other message like ‘no games scheduled this week’?

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

    (@rochesterj)

    Hi!

    Thanks for reaching out and I’m sorry for the trouble.

    What theme are you using? Would you mind pasting the link to your website here, so we can check it out?

    Kind Regards,
    -Roch

    Thread Starter bwreilly00

    (@bwreilly00)

    sportspress rookie and iwbocce.ball.co.nf

    Displaying the top 3 scheduled events for this week. They show up correctly when an event is scheduled and when no event is scheduled in the current week (set to week begins on Monday) then no event is shown as being scheduled, also correct.

    Roch

    (@rochesterj)

    Hi!

    Thanks for your reply.

    That link isn’t working, please kindly check. If possible, please send us a link to the exact page where you see this issue.

    Also, I’m not sure if I get what you mean. If they show up correctly then what is not working for you?

    Thanks!

    Thread Starter bwreilly00

    (@bwreilly00)

    I am sorry for the confusion. The problem is on the home page (https://iwbocceball.co.nf) under the this weeks games section. I have created a calendar, layout list, event list 1070, status – scheduled, date – this week. and pasted the short code into the this weeks games section on the home page.

    The scheduled events for the week show up when they are scheduled for the current week. when I use the web site in the next week and no events are scheduled they do do show up instead a message “No data available in table” is displayed. When that occurs, I would like to display a different message that says “No games scheduled this week” which is more user friendly.

    Everything is working correctly, I just want to display a different message. I am sorry for the confusion.

    Plugin Contributor Savvas

    (@savvasha)

    Hi @bwreilly00,

    Unfortunately the message is hardcoded in js code (https://github.com/ThemeBoy/SportsPress/blob/003808885808be87140a5076d7d50185ee42281e/assets/js/jquery.dataTables.min.js#L6). You can change it to what you want but everytime the plugin is updated, the default message will be restored.

    Actually there is a way to make the change update-friendly. You will need to add some custom js code to your theme function.php. Please check the following url:
    https://stackoverflow.com/questions/31983492/how-to-change-datatable-default-empty-table-message/31983571

    Thanks,
    Savvas

    • This reply was modified 6 years, 4 months ago by Savvas. Reason: Possible solution
    Thread Starter bwreilly00

    (@bwreilly00)

    Thanks for the options

    Roch

    (@rochesterj)

    You’re most welcome!

    Let us know if you need anything else.

    Kind Regards,
    -Roch

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘league table – no data available in table’ is closed to new replies.