0
Welcome Guest! Login
0 items Join Now

Placeholder alternatives

  • Placeholder alternatives

    Posted 17 years 2 months ago
    • Due to the nature of the placeholder, in certain templates, it is not styled resulting in some distasteful layout. The normal workaround is to use the link-url menu item to #. However, I post in Sporticus concluded with a better solution which I am going to demonstrate here.

      Joomla 1.0x

      1. Login into your Administrator
      2. Go to Menu > mainmenu > New
      3. Choose link-url as your Menu item
      4. In the URL field, insert
      javascript:void(0)
      5. Fill in your other details and save.



      Joomla 1.5
      1. Login into your Administrator
      2. Go to Menus > Main Menu > New
      3. Choose "External Link" as your Menu item
      4. In the link field, insert
      javascript:void(0)
      5. Fill in your other details and save.



      Thanks to Brian D
    • Last Edit: 17 years 1 month ago by James Spencer.
    • James Spencer / Developer & Support / Hull, UK
    • MariO's Avatar
    • MariO
    • Hero Rocketeer
    • Posts: 340
    • Thanks: 0

    Re: Placeholder alternatives

    Posted 17 years 1 month ago
    • May i ask if it works for J1.5 ..... if so what menu type please ?

      Thanks James
      MArio
  • Re: Placeholder alternatives

    Posted 17 years 1 month ago
    • See updated post.
    • James Spencer / Developer & Support / Hull, UK
    • MariO's Avatar
    • MariO
    • Hero Rocketeer
    • Posts: 340
    • Thanks: 0

    Re: Placeholder alternatives

    Posted 17 years 1 month ago
    • Excelent :)

      Thanks James !
      Mario
  • Re: Placeholder alternatives

    Posted 17 years 1 month ago
    • I have a very very large menu structure and found that when I remove the "href=" from this code:

      case 3:
      // don't link it
      $txt = '<a href=\"#\" '.$active.' '. $id .$title.'><span>'. $txt .'</span></a>';
      break;

      Found in the ja_cssmenu.php that my placeholder errors are solved, without having to use another method like the - link URL and javascript:void(0); method.... does anyone know if removing this "href=" will cause any other unexpected problem?
  • Re: Placeholder alternatives

    Posted 17 years 1 month ago
    • That is a JA menu, so ask them ;)
    • James Spencer / Developer & Support / Hull, UK
  • Re: Placeholder alternatives

    Posted 16 years 9 months ago
    • Good,

      I edited PHP to add <a href="#">.. :)
  • Re: Placeholder alternatives

    Posted 16 years 9 months ago
    • YES! That works! :) Thanks!
    • 's Avatar

    Re: Placeholder alternatives

    Posted 16 years 5 months ago
    • ;D ABSOLUTELY BRILLIANT! ;D

      I was using the old # and it kept going back to the home page if clicked, This is a perfect solution.

      Thank You
      Mark
  • Re: Placeholder alternatives

    Posted 16 years 4 months ago
    • The problem with this solution is that you get a hand on the top menu item indicating that you can click the top menu item and do something when all you want is the submenus to display, which will do something when clicked. It is better to leave the Link blank for the top menu and you get the same affect, the submenus appear, but you don't get the hand on the top menu.

      Steve

Time to create page: 0.057 seconds