• Resolved dugbrown

    (@dugbrown)


    Very nicely done! I have zero problems with it! Anything issues are of my own making ?? 5 Star Widget!!!

    BUT, I have a question that maybe someone can answer … Is there a way to hide the widget if I have nothing to show?

    For example, I’m using this to display a list of posts based on a custom query and sometimes there query is empty (which is to be expected). In this case I just want to hide the widget. I can’t figure out how to do that ??

    Any help would be GREATLY appreciated!

    https://www.ads-software.com/plugins/php-code-widget/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    No, this cannot be done from inside the widget. The widget will remain but simply be empty. You can use Javascript or CSS code to display:none it in such a case, if you like.

    Thread Starter dugbrown

    (@dugbrown)

    Thanks. This is what I figured and what I did too. Maybe making a plugin for my widget would be the smartest but I never said I was smart ??

    Thanks for a nice plugin.

    DB

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Hide widget when nothing to display?’ is closed to new replies.