<?php if($page->toggledeleteclass()->bool()): ?>
<div class="price price-margin-top">
Here is my pricing table (deleted the whole pricing table)
</div>
<?php endif ?>
But then it shows the complete div if the toggle is true. I want to delete the class "price-margin-top’ if the toggle is set tue true. I tried already to do the loop around the class element but this seems not to work.
<div class="price <?php if($page->toggledeleteclass()->bool()): ?>price-margin-top"<?php endif ?>>
Here is my pricing table (deleted the whole pricing table)
</div>