Extra Div Creation | Community
Skip to main content
sumit5290
New Participant
October 16, 2015
Solved

Extra Div Creation

When i am using teaser in my site creation.. it is creating extra div??
Is there any way to get rid of it....it is changing my design layout

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
edubey
edubeyAccepted solution
Level 10
October 16, 2015

Hi,

Add this piece of code in global.jsp of your project to avoid extra div generated by AEM: 

<%
if (WCMMode.fromRequest(request) != WCMMode.EDIT && WCMMode.fromRequest(request) != WCMMode.DESIGN) {
                  componentContext.setDefaultDecorationTagName( "" );
        }
%>

3 replies

smacdonald2008
Level 10
October 16, 2015

Here is an older community thread that talks about a related subject:

https://forums.adobe.com/thread/981240

Translate
edubey
edubeyAccepted solution
Level 10
October 16, 2015

Hi,

Add this piece of code in global.jsp of your project to avoid extra div generated by AEM: 

<%
if (WCMMode.fromRequest(request) != WCMMode.EDIT && WCMMode.fromRequest(request) != WCMMode.DESIGN) {
                  componentContext.setDefaultDecorationTagName( "" );
        }
%>

Translate
sumit5290
sumit5290Author
New Participant
October 16, 2015

i have already used this but in the teaser section i m facing this issue again

Translate