Jump to content

Remove title from top menu buttons


srm200

Recommended Posts

Hello,

 

I am trying to remove the title from the top menu buttons but without succes.

 

I've tried to delete the title tag from the blocktopmenu.tpl file but didn't find it there, then i deleted all title tags in the blocktopmenu.php file but also without succes. i spend about 5 hours trying to sort this out but now luck.

I hope that someone could help me with this one.

 

My ps version is 1.6

Edited by srm200 (see edit history)
Link to comment
Share on other sites

The only 2 things thing that i am having in blocktopmenu module folder are the translation folder and the blocktopmenu.tpl file that contains the following code:

{if $MENU != ''}
	<!-- Menu -->
	<div id="block_top_menu" class="sf-contener clearfix col-lg-12">
		<div class="cat-title">{l s="Categories" mod="blocktopmenu"}</div>
		<ul class="sf-menu clearfix menu-content">
			{$MENU}
			{if $MENU_SEARCH}
				<li class="sf-search noBack" style="float:right">
					<form id="searchbox" action="{$link->getPageLink('search')|escape:'html':'UTF-8'}" method="get">
						<p>
							<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:'html':'UTF-8'}{/if}" />
						</p>
					</form>
				</li>
			{/if}
		</ul>
	</div>
	<!--/ Menu -->
{/if}
Link to comment
Share on other sites

  • 1 month later...

You can edit the blocktopmenu.php file located in modules/blocktopmenu/ folder.

Find the function generateCategoriesMenu

There will be a line: $html .= '<a href="'.$link.'" title="'.$category['name'].'">'.$category['name'].'</a>';

 

The actual html for the menu is generated in php which in my opinion is bad coding...

 

You would be editing core module file which I guess is not recommended but if you need a quick fix...

Proper way would be duplicating the module for top menu and fixing it in the new module. If only PS had a 'nice' way of cloning a module...

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...