# no\_wrapper = true, not working

**URL:** <https://community.hubspot.com/t/no-wrapper-true-not-working/24528>\
**Category:** CMS Development\
**Created:** [August 24, 2020, 7:51am UTC](https://community.hubspot.com/t/no-wrapper-true-not-working/24528 "2020-08-24T07:51:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![doroness](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/doroness/32/38459_2.png) [@doroness](https://community.hubspot.com/u/doroness)\
**Post date:** [August 24, 2020, 7:51am UTC](https://community.hubspot.com/t/no-wrapper-true-not-working/24528/1 "2020-08-24T07:51:03Z")

</div>

I have this code in a HUBL template

```auto
 {% module_block module "section_6_img" path="@hubspot/linked_image",
 label="Section 6 Image", no_wrapper=true %}

```

no\_wrapper = true doesn’t seem to do anything, it still outputs the wrapping HTML.

I need to give a section a background image. I want the person who is editing the page, be able to control the image. via the editor, without the need to modify CSS. What is the best way to do that?

---

<div class="post-metadata">

**Author:** ![piersg](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/piersg/32/99782_2.png) [@piersg](https://community.hubspot.com/u/piersg)\
**Post date:** [August 24, 2020, 9:19am UTC](https://community.hubspot.com/t/no-wrapper-true-not-working/24528/2 "2020-08-24T09:19:12Z")

</div>

Hi @doroness,

What I do for background images that the editor can choose is write it as an inline style on the element in question (and have the choice in the module options) like:

```lia-code-sample
<section class="foo bar" {% if module.bg_image.src %}style="background-image: url({{module.bg_image.src}})"{% endif %}>
 // other html
</section>

```

Or you can write it in a style tag:

```lia-code-sample
{% if module.bg_image.src %}
<style>
 section {
 background-image: url({{module.bg_image.src}})
 }
</style>
{% endif %}

```

---

<div class="post-metadata">

**Author:** ![doroness](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/doroness/32/38459_2.png) [@doroness](https://community.hubspot.com/u/doroness)\
**Post date:** [August 24, 2020, 9:30am UTC](https://community.hubspot.com/t/no-wrapper-true-not-working/24528/3 "2020-08-24T09:30:46Z")

</div>

thanks @piersg  
the “module” in your example - is it a default model? (e.g - image?) or a custom one?

Any idea why no\_wrapper = true, not working?

Thanks!

---

<div class="post-metadata">

**Author:** ![piersg](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/piersg/32/99782_2.png) [@piersg](https://community.hubspot.com/u/piersg)\
**Post date:** [August 24, 2020, 9:47am UTC](https://community.hubspot.com/t/no-wrapper-true-not-working/24528/4 "2020-08-24T09:47:06Z")

</div>

Ah, it’s a custom one, sorry.

Is there a particular reason you want to remove wrapper? All it does is enable the functionality that when you click the module in the preview pane, the editor scrolls to that module. It doesn’t have any impact on whether the person editing has to modify CSS.
