How to use static menu instead of product menu on top mavigation

Hi,

I want to modify the top menu. Instead of linking to different categories, I would like to create new menu items that links to static pages (i.e. About Us, Contact) . I will retain the Categories though under the Products menu item.

Thanks

18 answers

Profile photo of Saguaros 0.00 $tone April 10, 2010
Public

Dear all!

i ‘ll give you the simplest way to resolve this issue
Pls open the file: app\design\frontend\default\jm_leadtemplate\page\ html\header.phtml

and find code:

HTML Code:

<?php echo $this->getChildHtml('topMenu') ?>

and replace:

HTML Code:

	<ul id="nav">
			<li ><a href="#">Test</a></li>
			<li ><a href="#">Test 2</a></li>
			<li ><a href="#">Test 3</a></li>
		</ul>

Good luck

#3
Profile photo of Saguaros 0.00 $tone April 26, 2010
Public

Please add the link follow syntax:

PHP Code:

<li ><a href="<?php echo $this->getUrl(SEL_URL_IDENTIFIER);?>">NAME OF MENU</a></li>


For example:
You can create a static page named is Customer Servie having the SEL URL Indifier equal "customer-service" and you ‘ll put the link as following:

PHP Code:

<li ><a href="<?php echo $this->getUrl('customer-service');?>">Custome Service</a></li>


Good luck

#5
Profile photo of Ron Federico 0.00 $tone April 27, 2010
Public

Tienhc

Newbee here.

Thanks again for your reply, but maybe I am not understanding you right. Here is what I did.

1. I replaced "<?php echo $this->getChildHtml(‘topMenu’) ?>" with

<ul id="nav">
<li ><a href="#">home</a></li>
<li ><a href="#">whats new</a></li>
<li ><a href="#">FAQ</a></li>
</ul><li><a href="#">track order</a></li>

That gave me the new menu. "Home" "whats new" "FAQ" "Track Order"

This is where I am still confused.

2. created a static page with the name "whats new" having the SEL URL Indifier equal "whats-new" so in other words, I entered "whats new" in the sel url idenifier.

3. Then you say to put the link in with the following php code:

example

<li ><a href="<?php echo $this->getUrl(whats-new);?>">whats new</a></li>

Where exactly do I place this php code ?

I have tried it, but the links are not working for me. Can you see what I am going wrong in the above code ?

Thanks for your patience !

#7
Profile photo of Saguaros 0.00 $tone April 29, 2010
Public

As i said in the previous answer

Dear all!

i ‘ll give you the simplest way to resolve this issue
Pls open the file: app\design\frontend\default\jm_leadtemplate\page\ html\header.phtml

and find code:

HTML Code:

<?php echo $this->getChildHtml('topMenu') ?>

and replace:

HTML Code:

	<ul id="nav">
			<li ><a href="#">Test</a></li>
			<li ><a href="#">Test 2</a></li>
			<li ><a href="#">Test 3</a></li>
		</ul>

Good luck

Please clear cache via the admin system

GOod luck

#8
Profile photo of G T 0.00 $tone July 27, 2010
Public

Dear all!

i ‘ll give you the simplest way to resolve this issue
Pls open the file: app\design\frontend\default\jm_leadtemplate\page\ html\header.phtml

and find code:

HTML Code:

<?php echo $this->getChildHtml('topMenu') ?>

and replace:

HTML Code:

	<ul id="nav">
			<li ><a href="#">Test</a></li>
			<li ><a href="#">Test 2</a></li>
			<li ><a href="#">Test 3</a></li>
		</ul>

Good luck

I succesfully done it, but it changed my background color from white to black. I am using Morganite

#10
congtq 0.00 $tone August 2, 2010
Public

Hi joomlagt.
Did you change background to white successfully? But your site is being error in css, I think you uploaded some files which override. You try to re-upload app\design\frontend\default\jm_morganitetemplate\ page\html\header.phtml file

#11
Profile photo of G T 0.00 $tone August 10, 2010
Public

I checked and fixed in app/design/frontend/default/jm_morganite/template/page/html/header.phtml

It worked fine. But while editing the file for giving links, I do not know what went wrong, but again the backgroud appears blank. I am really really very sorry. But can you please do it for me again.

#14
congtq 0.00 $tone August 10, 2010
Public

Code:

<!-- MAIN NAVIGATION -->
<div id="ja-mainnav" class="wrap">
	<div class="main">
		<?php  //echo $this->getChildHtml('topMenu'); ?>
		<div class="header-nav-container<?php if ($tmpTools->isHomepage()): echo "-hilite"; endif; ?> inner">
			<div class="header-nav">
				<ul id="nav">
					<li ><a href="#">Home</a></li>
					<li ><a href="#">About Us</a></li>
					<li ><a href="#">How to Use Site</a></li>
					<li ><a href="#">FAQ</a></li>
				</ul>
			</div>
		</div>
	</div>
</div>
<!-- //MAIN NAVIGATION -->

Fixed. Remember to backup before editing

#15
Profile photo of Rusell Cerrato 0.00 $tone June 6, 2012
Public

Hello Saguaros!

I found this post very insteresting, since I have a request very similar, but in my case, I will like to keep the current "category menu" items, but also add two extra options. like "Contact us" , "About us"

I already have the pages with their URL key. but Im wondering how and where should I add these new options.

best regards

#17

Please login or Register to Submit Answer

Written By

Comments