Find out more about the “Show Off Your Avatar Campaign
RocketTheme  |  General  |  Free/GPL/Tutorials Discussions  |  Topic: Placeholder alternatives « previous next »
Pages: [1] Go Down Print
Author Topic: Placeholder alternatives  (Read 6012 times)
James S!
Muffin Man
RocketTheme
Hero Rocketteer
*
Online Online

Posts: 34618


Firebug...Firebug...Firebug!

WWW
Placeholder alternatives
« on: October 13, 2007, 08:17:57 AM »

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
Code:
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
Code:
javascript:void(0);
5. Fill in your other details and save.



Thanks to Brian D
« Last Edit: November 12, 2007, 04:19:39 PM by James S! » Logged

Firebug Video Tuts: - Editing HTML - Javascript Errors - Logo Changes

Video tutorials on how to use Firebug, its what we use Smiley
MariO
Hero Rocketteer
*****
Offline Offline

Posts: 258


Re: Placeholder alternatives
« Reply #1 on: November 12, 2007, 03:18:41 PM »

May i ask if it works for J1.5  ..... if so what menu type please ?

Thanks James
MArio
Logged
James S!
Muffin Man
RocketTheme
Hero Rocketteer
*
Online Online

Posts: 34618


Firebug...Firebug...Firebug!

WWW
Re: Placeholder alternatives
« Reply #2 on: November 12, 2007, 04:19:53 PM »

See updated post.
Logged

Firebug Video Tuts: - Editing HTML - Javascript Errors - Logo Changes

Video tutorials on how to use Firebug, its what we use Smiley
MariO
Hero Rocketteer
*****
Offline Offline

Posts: 258


Re: Placeholder alternatives
« Reply #3 on: November 13, 2007, 01:20:20 AM »

Excelent Smiley

Thanks James !
Mario
Logged
Christopher Cordima
Newbie
*
Offline Offline

Posts: 4

Re: Placeholder alternatives
« Reply #4 on: November 13, 2007, 07:20:02 PM »

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?
 
Logged
James S!
Muffin Man
RocketTheme
Hero Rocketteer
*
Online Online

Posts: 34618


Firebug...Firebug...Firebug!

WWW
Re: Placeholder alternatives
« Reply #5 on: November 14, 2007, 01:42:21 AM »

That is a JA menu, so ask them Wink
Logged

Firebug Video Tuts: - Editing HTML - Javascript Errors - Logo Changes

Video tutorials on how to use Firebug, its what we use Smiley
Sergey Zainutdinov
Newbie
*
Offline Offline

Posts: 6

Re: Placeholder alternatives
« Reply #6 on: April 08, 2008, 10:45:38 AM »

Good,

I edited PHP to add <a href="#">.. Smiley
Logged
Rudy Leffler
Jr. Rocketeer
**
Offline Offline

Posts: 25

Re: Placeholder alternatives
« Reply #7 on: April 08, 2008, 09:25:47 PM »

YES! That works! Smiley Thanks!
Logged
Mark Smith
Newbie
*
Offline Offline

Posts: 11


Re: Placeholder alternatives
« Reply #8 on: August 06, 2008, 08:12:39 AM »

Grin ABSOLUTELY BRILLIANT!  Grin

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

Thank You
Mark
Logged

The toughest thing about success is that you've got to keep on being a success.
[Irving Berlin]
Pages: [1] Go Up Print 
RocketTheme  |  General  |  Free/GPL/Tutorials Discussions  |  Topic: Placeholder alternatives « previous next »
Jump to: