# How to add icon before label of toggle

**URL:** <https://forum.ionicframework.com/t/how-to-add-icon-before-label-of-toggle/51548>\
**Category:** ionic-v3\
**Created:** [May 9, 2016, 4:02pm UTC](https://forum.ionicframework.com/t/how-to-add-icon-before-label-of-toggle/51548 "2016-05-09T16:02:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahlidap](https://avatars.discourse-cdn.com/v4/letter/a/87869e/32.png) [@ahlidap](https://forum.ionicframework.com/u/ahlidap)\
**Post date:** [May 9, 2016, 4:02pm UTC](https://forum.ionicframework.com/t/how-to-add-icon-before-label-of-toggle/51548/1 "2016-05-09T16:02:32Z")

</div>

Hi,

I’m having problems in putting an Icon just before the label on a toggle elemenet.

I have the following:

```
<ion-item>
	<ion-label><ion-icon name="star"></ion-icon>Label</ion-label>
	<ion-toggle checked="false"></ion-toggle>
</ion-item>

```

This works but as soon as I put my custom icon everything gets break.  
What I want is just the example of the “Airplane Mode” on this page:

> **[Ionic Framework](https://ionicframework.com/docs/api/components/item/Item/)**
>
> Ionic is the app platform for web developers. Build amazing mobile, web, and desktop apps all with one shared code base and open web standards

Thanks

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [May 9, 2016, 4:10pm UTC](https://forum.ionicframework.com/t/how-to-add-icon-before-label-of-toggle/51548/2 "2016-05-09T16:10:51Z")

</div>

This has to do with it being a custom icon.

`ion-icon` has some code underneath it to make sure it loads the appropriate icon for both ios and md. You would need to create a class for your custom icon that fits for ios and md.
