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 9518 times)
James S!
Muffin Man
RocketTheme
Hero Rocketteer
*
Offline Offline

Posts: 38357


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: 274


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
*
Offline Offline

Posts: 38357


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: 274


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
*
Offline Offline

Posts: 38357


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: 36

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: 12


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]
Steve Overton
Newbie
*
Offline Offline

Posts: 13

Re: Placeholder alternatives
« Reply #9 on: August 20, 2008, 05:50:31 PM »

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

Logged
MariusBB
Newbie
*
Offline Offline

Posts: 8


Re: Placeholder alternatives
« Reply #10 on: September 19, 2008, 01:31:37 PM »

This is just great! Thanks!
Logged
Kathy Rose
Rocketeer
***
Offline Offline

Posts: 81

Re: Placeholder alternatives
« Reply #11 on: September 22, 2008, 08:01:06 PM »

Just what I needed, thanks!
Logged
Yaani-Mai Gaddy
Professional
Rocketeer
*
Offline Offline

Posts: 83

Re: Placeholder alternatives
« Reply #12 on: September 25, 2008, 05:06:08 PM »

Perfect!

Thank you so much! James' solution with Steve Overton's suggestion works great for me.  Grin
Logged
Pages: [1] Go Up Print 
RocketTheme  |  General  |  Free/GPL/Tutorials Discussions  |  Topic: Placeholder alternatives « previous next »
Jump to: