Expand my Community achievements bar.

SOLVED

Extra Div Creation

Avatar

Level 1

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

1 Accepted Solution

Avatar

Correct answer by
Level 10

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

View solution in original post

3 Replies

Avatar

Level 10

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

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

Avatar

Correct answer by
Level 10

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

Avatar

Level 1

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