im working with magentos main navigation and i would like to simply add an arrow image aftger each of the 1st level menu items. This should be a simple thing but i cant work out how to do it.
I have copied nafigation.phtml into my local mage file and chnage it from this:
$html[] = $htmlLi;
$html[] = '<a href="'.$this->getCategoryUrl($category).'"'.$linkClass.'>';
$html[] = '<span>' . $this->escapeHtml($category->getName()) . '</span>';
$html[] = '</a>';
To this, to test it:
$html[] = $htmlLi;
$html[] = '<a href="'.$this->getCategoryUrl($category).'"'.$linkClass.'>';
$html[] = '<span>' . $this->escapeHtml($category->getName()) . '</span>';
$html[] = '<span>Hello World</span>';
$html[] = '</a>';
But no changes get made and i don't see hello world after the menu items.
Any help will be much appreciated, thanks
This can be simply done with CSS but you need to show me the HTML output aside the PHP code.
If your menu items are generated something like this:
<ul class="menu-items">
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ul>
Then you can use one of these:
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments