Jump to content

Change '$MENU' in a .tpl file?


MBroadbridge

Recommended Posts

Hi all,

 

Please see below my code, I'm looking for a way to change the $MENU so that I can add a class to each link in my navigation bar. The file this is from is BlockTopMenu.tpl. I'm using a theme called 'Wine Store'

 

{if $MENU != ''}
 
<div class="clear"></div>
<div class="main-mobile-menu">
<div class="wrap-title">
  <h4>Categories </h4>
  <span class="open-mobile"></span>
</div>
  <ul class="menu-mobile">
{$MENU}
  </ul>
</div>
<!-- Menu -->
<div class="sf-contener clearfix">
<ul class="sf-menu clearfix">
{$MENU}
{if $MENU_SEARCH}
<li class="sf-search noBack" style="float:right" id="{$link->getPageLink('search')}">
<form id="searchbox" action="{$link->getPageLink('search')}" method="get">
<input type="hidden" name="controller" value="search" />
<input type="hidden" value="position" name="orderby"/>
<input type="hidden" value="desc" name="orderway"/>
<input type="text" name="search_query" value="{if isset($smarty.get.search_query)}{$smarty.get.search_query|escape:'htmlall':'UTF-8'}{/if}" />
</form>
</li>
{/if}
</ul>
<div class="sf-right"> </div>
</div>
<!--/ Menu -->
{/if}
 
 
 
Thanks in advance
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...