# Use a Custom Icon in Card

> If you have created icons and would like to use these custom icons on a few cards' this is a solution.

Source: https://tadabase.com/docs/snippets/use-a-custom-icon-in-card  
Status: Not yet re-checked. Moved from our previous help site and not yet re-checked against the current product. Last edited Sep 20, 2024.

![Screenshot for “Use a Custom Icon in Card”](https://tadabase-docs-assets.s3.amazonaws.com/uploads/images/gallery/2022-09/scaled-1680-/image-1664079243204.png)

If you have created icons and would like to use these custom icons on a few cards' this is a solution.

**Step 1**

**Find the component ID of your card.**

![Screenshot for “Use a Custom Icon in Card”](https://tadabase-docs-assets.s3.amazonaws.com/uploads/images/gallery/2022-09/scaled-1680-/image-1664079552125.png)

**Step 2**

**Add the following code to the JavaScript tab of your page.**

```
TB.render('component_3',function(data){
    setTimeout(function(){
        if(!data.ele.find('.custom-icon').length){
            data.ele.find('.af-card-component .con').prepend('<img class="custom-icon" src="https://community.tadabase.io/uploads/default/original/2X/f/f21ff3d03ee2bfaa679e94b5bf2299f47a8f82cc.png">');    
        }
    },100);
});
```

> **Note:** Remember to change the component Id to the ID you found in step 1. Next, you will need to edit the image source to your image link address.

![Screenshot for “Use a Custom Icon in Card”](https://tadabase-docs-assets.s3.amazonaws.com/uploads/images/gallery/2022-09/scaled-1680-/image-1664079687249.png)
