The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Hide certain navigation bar link?

5 posters

Go down

Solved Hide certain navigation bar link?

Post by roCrox April 21st 2011, 2:16 pm

Is it possible to hide/disable certain links from my navigational bar,
i really see no use in having FAQ in my navbar.

using phbb2.



Last edited by roCrox on April 25th 2011, 2:41 pm; edited 1 time in total
roCrox
roCrox
Forumember

Male Posts : 83
Reputation : 20
Language : English

Back to top Go down

Solved Re: Hide certain navigation bar link?

Post by Sanket April 21st 2011, 3:01 pm

Users & groups>Special Rights
Choose admin for whichever option. So that will only be visible for you.
Sanket
Sanket
ForumGuru

Male Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai

Back to top Go down

Solved Re: Hide certain navigation bar link?

Post by roCrox April 21st 2011, 4:48 pm

Yes im aware of that, but im searching for something to hide it completely
to all users, if this can be done trough script code?
roCrox
roCrox
Forumember

Male Posts : 83
Reputation : 20
Language : English

Back to top Go down

Solved Re: Hide certain navigation bar link?

Post by Saxaca April 21st 2011, 5:11 pm

It is possible to hide a link based on it's href value, using CSS:
a[href='/faq'] { display: none; }

It is also possible to hide links based on id's, classes or other selectors..
Saxaca
Saxaca
Forumember

Male Posts : 539
Reputation : 26
Language : Markup.

Back to top Go down

Solved Re: Hide certain navigation bar link?

Post by roCrox April 21st 2011, 10:57 pm

Saxaca wrote:It is possible to hide a link based on it's href value, using CSS:
a[href='/faq'] { display: none; }

It is also possible to hide links based on id's, classes or other selectors..

This works,
but the selection still remains, is there a way to hide it completely.

Tho thankyou Very Happy
roCrox
roCrox
Forumember

Male Posts : 83
Reputation : 20
Language : English

Back to top Go down

Solved Re: Hide certain navigation bar link?

Post by Saxaca April 21st 2011, 11:17 pm

What selection?
Saxaca
Saxaca
Forumember

Male Posts : 539
Reputation : 26
Language : Markup.

Back to top Go down

Solved Re: Hide certain navigation bar link?

Post by roCrox April 22nd 2011, 2:17 pm

Ah its just a minor two blanks more between Home and Portal in the navigational bar, doesnt matter anyway, thanks.

Also now that this is do·a·ble, can i rename nav links eg. Profile to User CP.

Hide certain navigation bar link? Mouais

Edit:


Again thanks for help Saxaca & Sanket, question solved !
roCrox
roCrox
Forumember

Male Posts : 83
Reputation : 20
Language : English

Back to top Go down

Solved Re: Hide certain navigation bar link?

Post by AaronW May 9th 2011, 11:19 pm

Saxaca wrote:

It is also possible to hide links based on id's, classes or other selectors..

How would you do this part?
I have custom nav links that take the place of 'Home' 'portal' and 'Profile' (so that I could change them to say Forum, Home, and User CP respectively) and if I try to hide it using the href, it will hide the ones I don't want hidden as well seeing as how they use the same href.
avatar
AaronW
Forumember

Male Posts : 33
Reputation : 0
Language : English

Back to top Go down

Solved Re: Hide certain navigation bar link?

Post by kirk May 10th 2011, 1:25 am

Since the topic was marked solved i will now lock
kirk
kirk
Forumaster

Male Posts : 11037
Reputation : 653
Language : English,Vulcan,Klingon, Romulan,& Gorn

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum