It's a challenge and not sure if that's even possible but here is my problem:
I don't have full access to the website. The only what I can do is to edit my external css.
Menu code:
<ul id="navPrimary" class="nav">
<li id="navLink1"><a href="#">Link1</a></li>
</ul>
I want to add this as first position on the list:
<li id="navHome"><a href="/"><i class="icon-home"></i></a></li>
I can ask system administrator to add link to Home but his code will look like this:
<li id="navHome"><a href="/">Home</a></li>
So there still will be the problem with replacing text Home with my <i class="icon-home"></i>.
The only thing which comes up to my mind regarding CSS is :before, :after and content but not quite sure how exactly to use it. As before I've tried adding single word.
EDIT1
I have tired this:
#navLink1:before{
content:'<li id="navHome"><a href="/"><i class="icon-home"></i></a></li>';
}
but this added only html code as text.