I am trying to set css class to link in Yii2 Menu Widget. I have added below code as items, but after page rendering , no class attribute added in link.
I have checked linkTemplate option, But it is common for all links. But What if I want to add css class to specific links in menu? How can I add css class for specific links?
Yes I have checked description and I understood this If I am not wrong. I have applied this then it adds class to both links. But what if I want to add only for Home link.