Sign Up for OSTraining

Welcome, Guest
Username: Password: Remember me

TOPIC: Main Menu Link

Main Menu Link 11 months 4 weeks ago #47105

  • shirin
  • shirin's Avatar
  • OFFLINE
  • OSTar
  • Posts: 97
  • Karma: 0
Hi,

Is it possible to have a link in the main menu, which is not actually a link just a heading for a drop down menu? I have a link in main menu, which does not need to be a link, but I have to create an unnecessary page for it.

www.everhealth.net, Patients does not need to have a page.

Also, when I create a menu alias as link, wen that page is visited the link for it becomes white, unreadable text. What is causing that?

thanks
Shirin
Shirin
Please become a member of OSTraining to reply to this post.

Main Menu Link 11 months 4 weeks ago #47107

  • Nick
  • Nick's Avatar
  • OFFLINE
  • Administrator
  • Posts: 16795
  • Thank you received: 386
  • Karma: 56
Hi Shirin,

1) You can make the menu item type to be a "Text Separator".

2) Your template doesn't have CSS styling for menu item aliases and that would have to be added.

Hope this helps! Let me know if you have any questions.

Kind regards,
Nick
Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
Please become a member of OSTraining to reply to this post.

Main Menu Link 11 months 4 weeks ago #47197

  • shirin
  • shirin's Avatar
  • OFFLINE
  • OSTar
  • Posts: 97
  • Karma: 0
How do I add the CSS styling for menu item aliases?

when I made it text separator, it works but it still acts like a link. it doesn't go any where but it changes color and the mouse changes to the hand. How can I fix that.

thanks,
Shirin
Shirin
Please become a member of OSTraining to reply to this post.

Main Menu Link 11 months 4 weeks ago #47247

  • Nick
  • Nick's Avatar
  • OFFLINE
  • Administrator
  • Posts: 16795
  • Thank you received: 386
  • Karma: 56
Hi Shirin,

The same way as you would any CSS styling :)

You can fix it by adding the following code to your template's css file:
#nav li.parent span.separator, .moduletable-superfish li.parent span.separator {
    cursor: default !important;
}
#nav ul li.active span.separator, #nav ul li span.separator:hover, #nav ul li li span.separator:hover, #nav ul li.active span.separator:hover {
	color: #FFFFFF !important;
}

I would highly recommend that you take our CSS class to learn how to do these sort of changes. Here's a direct link to it:
www.ostraining.com/courses/class/coding/css/view/

Another invaluable tool is Firebug:
www.ostraining.com/blog/joomla/using-fir...it-joomla-templates/

Hope this helps!

Kind regards,
Nick
Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
Please become a member of OSTraining to reply to this post.

Sign Up for OSTraining

Powered by Kunena Forum

Open Source Training is not affiliated with or endorsed by the Joomla, WordPress or Drupal projects.
All product names and trademarks are the property of their respective owners.

Copyright 2013 Open Source Training, LLC. All rights reserved.