Skip to main content
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

sumit5290
sumit5290Author
October 16, 2015

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

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