Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 07:40:56 PM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155551 Posts in 21715 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: First menu item not linking  (Read 310 times)
daydreamer

Offline Offline

Posts: 253


« on: August 11, 2011, 11:01:42 AM »

Hi,

My first menu/page is not adding a link see below, please help

<li><span class="menu_current"><a href="" target="_top" class="menu_current">Home</a></span>
</li>
<li><span class="menu_default"><a href="/pages/contact-us.php" target="_top" class="menu_default">Contact Us</a></span>

Thanks

Logged
Ruud
WebsiteBaker Org e.V.

Offline Offline

Posts: 2297



WWW
« Reply #1 on: August 11, 2011, 11:08:55 AM »

Could it be your config.php does not have the WB_URL setting?

Code:
define('WB_URL', 'http://www.yourwebsite.com');
Logged

Professional WebsiteBaker Solutions
daydreamer

Offline Offline

Posts: 253


« Reply #2 on: August 11, 2011, 11:10:31 AM »

That was the first thing I checked but is all fine.
Logged
daydreamer

Offline Offline

Posts: 253


« Reply #3 on: August 11, 2011, 11:24:43 AM »

The first menu "Home" links to the last menu item added.
Logged
Ruud
WebsiteBaker Org e.V.

Offline Offline

Posts: 2297



WWW
« Reply #4 on: August 11, 2011, 11:27:59 AM »

links generated by show_menu or show_menu2 will always have the WB_URL part included.
In your example it is not.
So if WB_URL is correctly set could you show what show_menu() call you are using to generate the menu?
Logged

Professional WebsiteBaker Solutions
daydreamer

Offline Offline

Posts: 253


« Reply #5 on: August 11, 2011, 11:31:35 AM »

Hi Rudd,

I have tried these with no joy

<?php show_menu(1, 0, -1, true,
         '<li><span [class]>[a][menu_title][/a]</span>', '</li>',
         '<ul>', '</ul>', 'class="menu_default"', 'class="menu_current"', 0
         );
      ?>


<?php show_menu(); ?>
<?php show_menu(1); ?>
Logged
badknight
Moderator
**
Offline Offline

Posts: 246



WWW
« Reply #6 on: August 11, 2011, 11:33:30 AM »

use the show_menu2
Logged

Ich würde gern die Welt verändern, doch Gott gibt mir den Quellcode nicht...
daydreamer

Offline Offline

Posts: 253


« Reply #7 on: August 11, 2011, 11:51:07 AM »

Still same problem with show_menu2   huh
Logged
daydreamer

Offline Offline

Posts: 253


« Reply #8 on: August 11, 2011, 12:01:42 PM »

My mistake sorry, show_menu2  works fine

Thanks
Logged
daydreamer

Offline Offline

Posts: 253


« Reply #9 on: August 11, 2011, 12:05:59 PM »

Not sure what happened to menu 1, but show menu 2 works as normal.
Thanks guys for the fast help, never thought to use menu 2... been a long day already.

Thanks
Again
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!