Alert element - hide when empty?

I’m developing an Intranet for my company using Pro and I would like to be able to create an area on the home page to contain company-wide alert information. I’m currently using the Alert element with a shortcode to bring in content from any post marked with the category “Alert”.

Is there a way to hide this element if there are not currently any Alert-category posts? It currently shows up as a container without any contents. Or perhaps there is another way to accomplish this that I haven’t thought of? Thank you!

Actually never mind! :slightly_smiling_face:
I experimented some more with the flexbox settings and some CSS and I made it work!

Hey @EWSB,

We are just glad that you have figured it out a way to correct the said issue.
Thanks for letting us know!

Best Regards.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.