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?
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 %}
``
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.
Is it still relevant @Stephanie-OG ?
@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
@Stephanie-OG / @Oezcan , Can you help me with how to write no_wrapper=true for the div tag with the syntax?