Forum Support

Shape 5
May 07, 2021, 01:33:27 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Shape 5 Forum
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Home Link in Top Menu changes  (Read 301 times)
mowlman
Jr. Member
**
Offline Offline

Posts: 36



« on: May 20, 2011, 08:06:00 AM »

Home Link in Top Menu changes to whatever page to are currently on.

The Left Menu is fine, just the Top Menu Home Link.

http://tofino.directrouter.com/~epcohard/

I am aware of the s5_no_moo_menu.php fix that I've seen in other posts, but that only seems to effect the Home link in the Left menu.
Logged
mikek
Administrator
*****
Offline Offline

Posts: 28743



WWW
« Reply #1 on: May 20, 2011, 08:11:49 AM »

Hello,

Please edit s5_suckerfish.php and around line 115 you'll find:

switch ($mitem->browserNav) {
      case 1:
    if ($mitem->cnt > 0) {


Just above that code add the following:


if ($mitem->home == 1) {

$mitem->link = "";

}
Logged

Mike Knott
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
mowlman
Jr. Member
**
Offline Offline

Posts: 36



« Reply #2 on: June 03, 2011, 08:24:23 AM »

The code you suggest was already there, see attached image.
I even hard coded my home url.  ONe thing I noticed is when changing the s5_no_moo_menu.php, it only effected the Home link within the LEFT menu position, the Top Menu remained unchanged.

The behavior is that the Home menu link in the Top menu only takes on the URL of the current page.
Logged
mowlman
Jr. Member
**
Offline Offline

Posts: 36



« Reply #3 on: June 03, 2011, 11:06:57 AM »

Not a code fix, but I was able to get the home menu link to behave properly by going within the Basics template settings and
change Menu Script radio   from using jQuery  to using S5 Effects.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Looking for the largest variety in template designs? Look no more. Never buy 1 theme again. Signups start at just $89 for access to all of our themes.
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.