Home › Forums › Pro Support › Hide container when post list is empty › Reply To: Hide container when post list is empty
It probably wouldn’t be so bad since the sections that feature a list are further down the home page and not immediately visible. If we set it up to hide the specific sections by default and only appear when there is content it might just appear like the page is just loading elements.
I’m no expert but I was thinking of maybe some kind of script that checks for a post entry in a specific list ID and if posts found in the list it would add a class to the list ID. The class could then have an attribute like ‘display:block’ that overrides the initial “display:none” attribute. Just a thought.
I’m happy to give this a crack myself but if you are able to assist I’d appreciate it.