Jump to content

Add image on left horizontal menu?


Recommended Posts

Hi,

 

if you're using the default theme, open ROOT/Themes/theme-default/modules/blocktopmenu/blockmenu.tpl

You should see this:

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

We will simply add a new line, right on the left.

<ul class="sf-menu clearfix menu-content">
{$MENU}
	{if $MENU_SEARCH}
<li><img src="URLToTheImage" alt="Alt. text"></li>		
<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>

This is ofc only the case of default theme for 1.6. or maybe even 1.5.

You did not give us the URL of your site and as you might be using a different theme this guide is pretty useless.

  • Like 1
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...