By placing a CMS toggle stack into a block grid item you can control whether its content is displayed or not from the CMS admin panel. This is fine but it will not remove the gird item itself and you will be left with a space in the grid. The content is gone but the grid item is still there, taking up space and looking very messy.

The following jQuery should be placed in either your site-wide or page inspector Javascript code. It is very simple in implementation. Because the CMS toggle works using php, server side, then if the toggle is turned off there will be no content inside the toggle stack wrapper. The code simply looks for any toggle stacks that are in a block grid and have no content. Once found, the parent block grid item is removed from the DOM.

You can copy the code directly from here:

http://csnipp.com/s/1174/-Remove-a-Foundation-Block-Grid-Item-when-Total-CMS-toggle-is-OFF-