# How to remove wrapping div using HUBL

**URL:** <https://community.hubspot.com/t/how-to-remove-wrapping-div-using-hubl/64491>\
**Category:** CMS Development\
**Created:** [September 6, 2022, 7:07am UTC](https://community.hubspot.com/t/how-to-remove-wrapping-div-using-hubl/64491 "2022-09-06T07:07:51Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![sjay](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/sjay/32/78108_2.png) [@sjay](https://community.hubspot.com/u/sjay)\
**Post date:** [September 6, 2022, 7:07am UTC](https://community.hubspot.com/t/how-to-remove-wrapping-div-using-hubl/64491/1 "2022-09-06T07:07:51Z")

</div>

Hi,  
How to remove the wrapping Div in HUBL  
In JQuery we have $(‘.child\_class’).unwrap(); to remove parent class.  
Similarly, do we have anything in HubL to remove only the div element?

---

<div class="post-metadata">

**Author:** ![Oezcan](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/oezcan/32/53959_2.png) [@Oezcan](https://community.hubspot.com/u/Oezcan)\
**Post date:** [September 6, 2022, 8:59am UTC](https://community.hubspot.com/t/how-to-remove-wrapping-div-using-hubl/64491/2 "2022-09-06T08:59:33Z")

</div>

@Hello @sjay

if you mean something like this:

`{% module "module" path="../modules/module", label="Module", no_wrapper=True %}`

you only need no\_wrapper=true.

I hope this helps.  
Best regards,  
Özcan

---

<div class="post-metadata">

**Author:** ![sjay](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/sjay/32/78108_2.png) [@sjay](https://community.hubspot.com/u/sjay)\
**Post date:** [September 6, 2022, 9:10am UTC](https://community.hubspot.com/t/how-to-remove-wrapping-div-using-hubl/64491/3 "2022-09-06T09:10:45Z")

</div>

Hi Ozcan,  
The below code snippet is for the module wrapping. But I just wanted to remove a div Element using HUBL based on condition. Is that possible?

{% module “module” path=“../modules/module”, label=“Module”, no\_wrapper=True %}

``

---

<div class="post-metadata">

**Author:** ![Oezcan](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/oezcan/32/53959_2.png) [@Oezcan](https://community.hubspot.com/u/Oezcan)\
**Post date:** [September 6, 2022, 12:27pm UTC](https://community.hubspot.com/t/how-to-remove-wrapping-div-using-hubl/64491/4 "2022-09-06T12:27:44Z")

</div>

I haven’t needed it yet. But look according to this article you can also use no\_wrapper=true on the fields in a module.

> **[Remove the wrapper from a field in a HubSpot custom module](https://www.stephanieogaygarcia.com/hubspot-website-development/remove-the-wrapper-from-a-field-in-a-hubspot-custom-module)**
>
> You can use the no\_wrapper parameter to remove the wrapper from a field in a custom module.

Is it still relevant @Stephanie-OG ?

---

<div class="post-metadata">

**Author:** ![Stephanie-OG](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/stephanie-og/32/73267_2.png) [@Stephanie-OG](https://community.hubspot.com/u/Stephanie-OG)\
**Post date:** [September 6, 2022, 12:49pm UTC](https://community.hubspot.com/t/how-to-remove-wrapping-div-using-hubl/64491/5 "2022-09-06T12:49:49Z")

</div>

@Oezcan - I usually use no\_wrapper=true on fields, but I’m not 100% sure about modules. I think it should work too!

* * *

**Stephanie O’Gay Garcia**

[Freelance HubSpot CMS Developer](http://www.stephanieogaygarcia.com?utm_source=HubSpotCommunity)

[Website](http://www.stephanieogaygarcia.com?utm_source=HubSpotCommunity) | [Contact](http://www.stephanieogaygarcia.com/contact?utm_source=HubSpotCommunity)

---

<div class="post-metadata">

**Author:** ![sjay](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/sjay/32/78108_2.png) [@sjay](https://community.hubspot.com/u/sjay)\
**Post date:** [September 6, 2022, 2:00pm UTC](https://community.hubspot.com/t/how-to-remove-wrapping-div-using-hubl/64491/6 "2022-09-06T14:00:18Z")

</div>

@Stephanie-OG / @Oezcan , Can you help me with how to write no\_wrapper=true for the div tag with the syntax?
