Remove <div> generated around Shared Block in EPiServer 7
Vote:
Episerver always wrap shared block in a <div> tag. I would like to get rid of this. So if in my LinkBlock has a Template with only <a href="#">link</a> I would get a <div><a href="#">link</a></div> in the browser for a end user. How to get rid of this tag?
If this is not possible how can I change <div> to any other tag, or put a CssClass on it. I would expect (like in the above example) to have for example:
Like it is possible in not shared blocks: <EPiServer:Property runat="server" PropertyName="RightContentArea" CustomTagName="aside" CssClass="column-2 sidebar"></EPiServer:Property>
Episerver always wrap shared block in a <div> tag. I would like to get rid of this. So if in my LinkBlock has a Template with only
<a href="#"
>link</a
>I would get a
<div
><a href="#"
>link</a
></div
>in the browser for a end user. How to get rid of this tag?
If this is not possible how can I change
<div
> to any other tag, or put a CssClass on it. I would expect (like in the above example) to have for example:<aside class="column">
<a href="#"
>link</a
></aside
>Like it is possible in not shared blocks:
<EPiServer:Property runat="server" PropertyName="RightContentArea" CustomTagName="aside" CssClass="column-2 sidebar"
></EPiServer:Property
>