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

Extra Div Creation

  • October 16, 2015
  • 3 replies
  • 750 views

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.
Best answer by edubey

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

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( "" );
        }
%>

sumit5290
sumit5290Author
October 16, 2015

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