This article(https://www.dcaric.com/blog/removing-extra-divs-from-episerver-content-areas) explains how to remove a div when using the helper Html.PropertyFor.
In the article it exmplains you cannot disable those divs by setting childrencustomtagname to an empty string because childrencustomtagname fallbacks to div and then provides a class which apparently handles the removal of the div. I find this to be an over the top way of handling something that should be really simple. Also very little is explained with the method they have provided. If I don't want a surrounding div for a element, shouldn't there be a straightforward solution for that?
Would there happen to be an alternative for disabling div elements for content area items in view mode, not just to replace them with another element?
I think Valdis Iljuconoks's EPiBootstrapArea NuGet package will solve this for you. Look at the section of the readme regarding "Skip Item Wrapper Element":
This will let you avoid rendering the wrapper div.
Thanks again Kenny you're a lifesaver.
Just having a lucky day. Valdis gets all the credit.
Haha kudos to him as well!