Quantcast
Channel: Optimizely Search & Navigation
Viewing all articles
Browse latest Browse all 6894

Removing extra DIVs from EPiServer Content Areas

$
0
0

Hello,

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?

Thanks.


Viewing all articles
Browse latest Browse all 6894

Trending Articles