<p>Not actually possible. That <code>icon</code> key is not being used anywhere – just a remnant from a past feature idea that didn’t make it into Craft 2.5. (I just removed it for the next release.)</p>

CC BY-SA 3.0
2015-12-04T11:55:27.413Z
2015-12-04T11:55:27.413Z
Brandon Kelly
<p>I notice that you can add icons for your sub navigation. However looking at the template for the subnav loop there isn't any markup to render that icon. Anyone know if this is coming in the future or missing code?</p>

<p>Example pulled from Craft Commerce plugin</p>

<pre><code>$context['subnav']['settings'] = array('icon' =&gt; 'settings', 'label' =&gt; Craft::t('Settings'), 'url' =&gt; 'commerce/settings');
</code></pre>

<plugin-development><plugins><plugin-craftcommerce>
Craft 2.5 plugin sub navigation icons
# Craft 2.5 plugin sub navigation icons

(Asked by: username_0 on 2015-12-03)

I notice that you can add icons for your sub navigation. However looking at the template for the subnav loop there isn't any markup to render that icon. Anyone know if this is coming in the future or missing code?
Example pulled from Craft Commerce plugin
$context['subnav']['settings'] = array('icon' => 'settings', 'label' => Craft::t('Settings'), 'url' => 'commerce/settings');

**Tags:** plugin-development, plugins, plugin-craftcommerce


---

## 1 answers

### Answer by username_1 on 2015-12-04. Score: 1 | Accepted answer

Not actually possible. That `icon` key is not being used anywhere – just a remnant from a past feature idea that didn’t make it into Craft 2.5. (I just removed it for the next release.)


---

