Support » Plugin: Very Simple Event List » How to hide a widget when there is no event ?

  • Hi, widget is great, but I need an option hide a widget when there is no event. It is possible to set it up ?

    Thanks for the help

    Milan

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Guido

    (@guido07111975)

    Hi Milan,

    Hide the no-events message is easy (with some custom CSS) but to hide whole widget is not easy, you should create a custom function for it. Cannot be done with custom CSS only.

    Guido

    Thanks for the reply. But how can I judge that a message is empty using css? I don’t understand, can you please give an example ?

    Thanks

    Plugin Author Guido

    (@guido07111975)

    Hi,

    Because the message has its own class, so you can hide that message by default:

    
    .vsel-no-events {display:none;}
    

    But the widget itself is not hidden this way, only the no-events message.

    Guido

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to hide a widget when there is no event ?’ is closed to new replies.