Hi,
I would like to remove the target page link from the main tabs (not sub-tab) from my site. I only want the menus to drop down when the user clicks on the tab not open a page or link.
Is there a way to do it??
Thanks,
Ross
Tags: links, menu, tabs, tabs & pages
Permalink Reply by Mike Price on August 11, 2011 at 12:20pm OH ! I would love this as well I think! Patiently waiting a genius to answer...haha :)
This would really help when using a touchscreen (iPad)
RR
From what I understand, that can be accomplished by going to the Tabs and Pages section of the Dashboard. Recreate the Tab by clicking on "Add new tab". Name the Tab the same as the main tab you wish to replace. DO NOT select the "create a new page" radio button, this way the tab will not be attached to a page. It will just show up as a main tab heading instead. Leave the setting as "Link to existing page" with the blank address. Choose your visibility level and save. You will then have to delete the original main tab that is attached to a page. Finally, move the new main tab into position above your sub-tabs. This will create the drop down effect you desire.
Good luck with it
Sorry but that does not work.
When you create a new tab and select "Link to existing page" without selecting the page it defaults to "Use existing URL" which if left blank defaults to "localhost".
Thanks.
RR
Anyone know how to do this??
Thanks

Permalink Reply by TJ @ jQueryHelp on August 12, 2011 at 3:24am I tried the following on my site and it works. Note, I have the old design editor, I don't use the new Design Studio and don't know if this works there or not.
This is code for your custom code box. I always recommend you back up what's in there before editing it. Select all and copy to a text document on your computer. Probably a good idea to keep a tab in your browser open with the custom code page in it, while you test the results in a second browser tab, since this messes with links.
If you can't get to your custom code box for any reason, the URL for it is http://YOURSITE/main/admin/tracking
So if you want to try this and have understood and done the above, then add this to your custom code box:
<script type="text/javascript">
// Disable links in Main Menu tabs but not sub tabs:
x$('li.xg_subtab > a').click(function(e) {
e.preventDefault();
});
</script>
Best wishes!
"TJ"
Absolute Genius!!!
That was exactly what I was looking for. I am completely amazed.
I am using the new editor but this works fine in the custom code. This make using the iPad much friendlier.
Thanks.
Ross

Permalink Reply by TJ @ jQueryHelp on August 12, 2011 at 1:06pm Hi Ross,
I'm glad that my code did what you needed! I can see why this would be helpful on any touch screen device. I hope your members find this solution to he helpful.
All the best to you!
"TJ"
Permalink Reply by Katie Shelly on November 22, 2011 at 7:05am hmm, this didn't work for me. I did what Ross did, and my nav bar links are still clickable. any advice?
Permalink Reply by Katie Shelly on November 22, 2011 at 7:30am just noticed that ross' site also has clickable nav bar links. going to check and see if ning has changed something in the stylesheet that's rendering TJ's code useless...
Permalink Reply by Katie Shelly on November 22, 2011 at 10:53am
Permalink Reply by Katie Shelly on November 22, 2011 at 11:09am i wish that a click (NOT a hover) on the navbar simply triggered the dropdown. this would be better for iPad, which is very important for our users.
Sylvia Hysen replied to Sylvia Hysen's discussion 'NING 2.0- Sign-up for newsletter'
Sylvia Hysen replied to Sylvia Hysen's discussion 'NING 2.0- Sign-up for newsletter'
Kos replied to Sylvia Hysen's discussion 'NING 2.0- Sign-up for newsletter'
Writer Chick {Diane} replied to Alex's discussion 'More styling in the Design Studio'
Sylvia Hysen replied to Sylvia Hysen's discussion 'NING 2.0- Sign-up for newsletter'
Sylvia Hysen replied to Alex from Bougex.com's discussion 'Leaving Ning... to SocialEngine. Happy... huuummmm.... don't know yet !!!'We were at the Online Community Unconference on Tuesday learning and talking. Crystal shares her…
See More
Sylvia Hysen replied to Sylvia Hysen's discussion 'NING 2.0- Sign-up for newsletter'© 2013 Created by Ning.
