I have 2 columns and 2 row div structure in my custom page layout of Publishing type. I have kept 4 WebPart zones in each boxes made by div structure.

Now my requirement is, the box with no WebPart added should not be displayed on the page in display mode.

While searching I came to so many post like this

But this is not working here.

So, my question is:

How do I detect which WebPart zone is empty?

Note: I am having only SharePoint designer to work with as its SharePoint Online.

1 Answer 1


Refer this article for solution. I think this is what you require.


  • 1
    This might answer the question but link-only answers tend to get useless once the link is deleted/gone. Kindly copy the useful information from the blog and paste it in your answer. Commented Mar 2, 2017 at 6:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.