# Help with logo module snippet for email custom template

**URL:** <https://community.hubspot.com/t/help-with-logo-module-snippet-for-email-custom-template/84339>\
**Category:** CMS Development\
**Tags:** email\
**Created:** [June 28, 2023, 11:03pm UTC](https://community.hubspot.com/t/help-with-logo-module-snippet-for-email-custom-template/84339 "2023-06-28T23:03:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dannyalva](https://avatars.discourse-cdn.com/v4/letter/d/ad7895/32.png) [@dannyalva](https://community.hubspot.com/u/dannyalva)\
**Post date:** [June 28, 2023, 11:03pm UTC](https://community.hubspot.com/t/help-with-logo-module-snippet-for-email-custom-template/84339/1 "2023-06-28T23:03:14Z")

</div>

Hi,

I’m creating a custom email module. I want to use the Logo module and I would like to modify the width in the parameters but I can’t seem to figure it out

This is my attempt but doesn’t work

{%

module “email\_template\_logo”

path=“@hubspot/logo”

label=“Logo”

image={

“width” : 100

}

%}

I hope someone can enlighten me with this issue. I don’t want to create a new logo module every time a template uses a different size.

Thanks

---

<div class="post-metadata">

**Author:** ![alyssamwilie](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/alyssamwilie/32/2072_2.png) [@alyssamwilie](https://community.hubspot.com/u/alyssamwilie)\
**Post date:** [June 29, 2023, 12:00pm UTC](https://community.hubspot.com/t/help-with-logo-module-snippet-for-email-custom-template/84339/2 "2023-06-29T12:00:48Z")

</div>

You need to change _image_ to _img_. However, this won’t work unless you upload your own image. This module works by pulling in the logo (width, height, alt, and url included) from Settings \> Pages \> Branding and does not let you change those defaults unless you choose to override the inherited source using _“override\_inherited\_src”: true_ and add your own image.

```lia-code-sample
{%
 module "email_template_logo"
 path="@hubspot/logo"
 label="Logo"
 img={
 "override_inherited_src": true,
 "src": "yourimageurl.svg",
 "width" : 100
 }
%}

```

To use the logo without overriding the source you would need to use CSS to change the width and height rather than the module settings.

---

<div class="post-metadata">

**Author:** ![dannyalva](https://avatars.discourse-cdn.com/v4/letter/d/ad7895/32.png) [@dannyalva](https://community.hubspot.com/u/dannyalva)\
**Post date:** [June 29, 2023, 1:37pm UTC](https://community.hubspot.com/t/help-with-logo-module-snippet-for-email-custom-template/84339/3 "2023-06-29T13:37:00Z")

</div>

Thank you Ayssa!

That was just what I wanted.

Would this work also for the Image for emails module?

{% module “image\_email” path=“@hubspot/image\_email” %}

I need to add a default src in the parameters.

Thanks again!

---

<div class="post-metadata">

**Author:** ![alyssamwilie](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/alyssamwilie/32/2072_2.png) [@alyssamwilie](https://community.hubspot.com/u/alyssamwilie)\
**Post date:** [June 29, 2023, 1:47pm UTC](https://community.hubspot.com/t/help-with-logo-module-snippet-for-email-custom-template/84339/4 "2023-06-29T13:47:12Z")

</div>

Essentially the same, you just don’t need the override\_inherited\_src for regular image modules.

```lia-code-sample
{% module "image_email" path="@hubspot/image_email",
 img={
 "src": "yourimageurl.png",
 "width": 100,
 "height": 100,
 "alt": "alt text here"
 }
%}

```

---

<div class="post-metadata">

**Author:** ![dannyalva](https://avatars.discourse-cdn.com/v4/letter/d/ad7895/32.png) [@dannyalva](https://community.hubspot.com/u/dannyalva)\
**Post date:** [June 29, 2023, 2:13pm UTC](https://community.hubspot.com/t/help-with-logo-module-snippet-for-email-custom-template/84339/5 "2023-06-29T14:13:22Z")

</div>

Thank you so much!
