I've looked all around for this but cannot find the answer. I am using .svg fonts that have a stylesheet and the font files in a directory. I added the CSS to my stylesheet, and have everything in place.
Since the category links are dynamically generated, I cannot get the SVG fonts to show.
Sure, I can add them in as a "background-image" in CSS, but that does not give me control of my icon as a font. I want to be able to control the size and color as intended.
I tried this:
<?php /** * Top menu for store * * @see Mage_Page_Block_Html_Topmenu */ ?> <?php $_menu = $this->getHtml('level-top') ?>
<?php if($_menu): ?> <nav id="nav"> <ol class="nav-primary"> <li class="level0 nav-1 first level-top"><div class="icon icon-myicon"></div></li> <?php echo $_menu ?> </ol> </nav> <?php endif ?>and it does not work. It shows the letter "a" which is the character mapping. It works fine in standard HTML pages, but trying to dynamically add it to Magento's TopMenu is a pain.