Try our conversational search powered by Generative AI!

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:

<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>

#64975
Jan 17, 2013 8:46
Vote:
 

I would also like to know this how it is possible to remove this div.

#81298
Feb 13, 2014 15:04
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.