How to remove aem-grid div's only in publish mode. | Community
Skip to main content
naresh5361
Level 2
August 30, 2022

How to remove aem-grid div's only in publish mode.

  • August 30, 2022
  • 1 reply
  • 1043 views

Hi Team,

 

How to remove below auto generated aem grid div's only in publisher. We using Aem as cloud service. 

<div class="container">
<div class="root container responsivegrid">

<div id="container-1f81d2b949" class="cmp-container">

<div class="aem-Grid aem-Grid--12 aem-Grid--default--12 ">

 

Author ----- > Publish <-----> UI layer 

we are handling responsive things in UI layer with different css.

 

Please help me to resolve these queries. Thanks in advance. 

 
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Saravanan_Dharmaraj
Community Advisor
Community Advisor
August 31, 2022

if this html grid div is generated using sightly , you can use the runmode(author/publish) and put a conditional wrap over that grid div and not show it in Publish instance.

naresh5361
Level 2
August 31, 2022

@saravanan_dharmaraj ,  

 

Those are template level responsive grid div's. We are using editable template and experience fragments.