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. 

 

http://www.hattiesburgpsd.com

 

Is there a way to do it??

 

Thanks,

Ross

Tags: links, menu, tabs, tabs & pages

Views: 220

Reply to This

Replies to This Discussion

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

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

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"

 

hmm, this didn't work for me. I did what Ross did, and my nav bar links are still clickable. any advice?

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...

this is my temporary solution, which just reloads the page. it would be nice to have unclickable dropdowns as a feature, though

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.

RSS

Latest Activity

Sylvia Hysen replied to Sylvia Hysen's discussion 'NING 2.0- Sign-up for newsletter'
"Formstack uses this on it's front page and I want to achieve similar results with different…"
7 minutes ago
Sylvia Hysen replied to Sylvia Hysen's discussion 'NING 2.0- Sign-up for newsletter'
"Does it integrate with your NING site by automatically collecting all new member emails?"
10 minutes ago
Kos replied to Sylvia Hysen's discussion 'NING 2.0- Sign-up for newsletter'
"I like mailchimp.  Have never had reason to try another."
18 minutes ago
Writer Chick {Diane} replied to Alex's discussion 'More styling in the Design Studio'
"So, I'm guessing that the corner rounding doesn't work with all templates?  I'm…"
21 minutes ago
Sylvia Hysen replied to Sylvia Hysen's discussion 'NING 2.0- Sign-up for newsletter'
"Thanks T"
22 minutes ago
Sylvia Hysen replied to Alex from Bougex.com's discussion 'Leaving Ning... to SocialEngine. Happy... huuummmm.... don't know yet !!!'
"New site not loading for me either, Alex. Using Safari."
23 minutes ago
Profile IconNing via Facebook
Thumbnail

We were at the Online Community Unconference on Tuesday learning and talking. Crystal shares her…

See More
Facebook24 minutes ago · Reply
Sylvia Hysen replied to Sylvia Hysen's discussion 'NING 2.0- Sign-up for newsletter'
"UPDATE: Constant Contact partners with Formstack for that purpose. Does anyone have any experience…"
26 minutes ago

© 2013   Created by Ning.

Badges  |  Report an Issue  |  Terms of Service