# Image tag not working

**URL:** <https://community.hubspot.com/t/image-tag-not-working/51231>\
**Category:** CMS Development\
**Created:** [February 9, 2022, 6:46pm UTC](https://community.hubspot.com/t/image-tag-not-working/51231 "2022-02-09T18:46:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bholsey](https://avatars.discourse-cdn.com/v4/letter/b/71c47a/32.png) [@bholsey](https://community.hubspot.com/u/bholsey)\
**Post date:** [February 9, 2022, 6:46pm UTC](https://community.hubspot.com/t/image-tag-not-working/51231/1 "2022-02-09T18:46:19Z")

</div>

Hello,

I am trying to put an image into my header file, but the {% image %} tag is not working. Here is my full tag:

{% image “image” label=“Header Image”, alt=“Header Image”, src=“../../images/home-illustration@2x.png” %}

It is not generating an area to edit the image, nor is it populating the image on the page. (See screenshot)

However, if i change the code to image\_src the global content editor recognizes the field and an area to edit shows up. I dont want to use image\_src though. I just want to use image. Any help would be much appreciated!

 ![Screen Shot 2022-02-09 at 1.38.23 PM.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/3X/5/e/5eff03a9e6ce1571d70da6885e91d8afe3b52407.jpeg)

---

<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:** [February 10, 2022, 8:39am UTC](https://community.hubspot.com/t/image-tag-not-working/51231/2 "2022-02-10T08:39:22Z")

</div>

Hello @bholsey ,

there are a few other options, either with a default module or with a custom module

This is the default module:

```lia-code-sample
{% module "linked_image" path="@hubspot/linked_image" 
"src": "https://static.hubspot.com/final/img/content/email-template-images/placeholder_200x200.png",
"alt": "placeholder_200x200",
"loading": "disabled",
"width": 200,
"height": 200
%}

```

and if you want a custom module you have to create/write a module with an image field and include them to your header.

 ![Oezcan_0-1644481905275.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/2X/7/72165142d59dde8ec68839da3fe79dd6f5ac1a75.jpeg)

 ![Oezcan_1-1644481981426.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/3X/0/e/0ef7be1db78f5996240860634ce4aa2bc5869630.jpeg)

 ![Oezcan_3-1644482112503.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/3X/3/2/32db4f57edc5ef6cd14913a0a526da33bb3633fb.jpeg)

or just write a module that you use as your header.

I hope I could help, best regards,

Özcan

---

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [February 10, 2022, 9:51am UTC](https://community.hubspot.com/t/image-tag-not-working/51231/3 "2022-02-10T09:51:54Z")

</div>

Hi @bholsey ,  
**If you are using here a module then you need to add a module path like this**

For HubSpot image module

{% module path=‘@hubspot/image’,

img={

‘alt’: ‘image’,

‘size\_type’: ‘auto’,

‘src’: get\_asset\_url(‘../images/home-banner.svg’) or “imageUrl”: “[https://example.com/path/to/image.jpg](https://example.com/path/to/image.jpg)”

}

%}

{% end\_dnd\_module %}

**If you using a custom module then you need to add here the path like**

{% module “image-module” path=“/project-theme/modules/image-module”

img={

‘alt’: ‘image’,

‘size\_type’: ‘auto’,

‘src’: get\_asset\_url(‘../images/company.png’) or “imageUrl”: “[https://example.com/path/to/image.jpg](https://example.com/path/to/image.jpg)”

}

%}

If you adding it statically then you can add it as

\<img src=“/images/company.png” alt=“”\>

Hope this helps!  
If we were able to answer your query, kindly help the community by marking it as a solution.  
Thanks and Regards.
