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.

How to hide some text navbars

3 posters

Go down

Solved How to hide some text navbars

Post by JAN2XONLINE March 5th 2013, 7:02 am

I want to hide group, calendar, and faq text navbar in phpbb3 forum. Please help. Thank you.
JAN2XONLINE
JAN2XONLINE
Forumember

Male Posts : 943
Reputation : 32
Language : Tagalog, English
Location : Alberta, Canada

http://animeph.4umer.com/

Back to top Go down

Solved Re: How to hide some text navbars

Post by Sanket March 5th 2013, 7:04 am

You could add such a code.
Code:
a.mainmenu[href="/groups"] {
    display: none !important;
}
Sanket
Sanket
ForumGuru

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

Back to top Go down

Solved Re: How to hide some text navbars

Post by Cassius Dio March 5th 2013, 7:33 am

Hi! Very Happy

For removing them all (calendar + groups + faq), you can use this one:
Code:
a.mainmenu[href="/groups"],  a.mainmenu[href="/faq"], a.mainmenu[href="/calendar"]{
    display: none !important;
}
Cassius Dio
Cassius Dio
Forumember

Male Posts : 581
Reputation : 79
Language : Romanian &English
Location : Yellow Submarine

http://beatles.forummo.com/

Back to top Go down

Solved Re: How to hide some text navbars

Post by JAN2XONLINE March 5th 2013, 7:45 am

Thank you both, but how do I remove spaces?

How to hide some text navbars Remove14
JAN2XONLINE
JAN2XONLINE
Forumember

Male Posts : 943
Reputation : 32
Language : Tagalog, English
Location : Alberta, Canada

http://animeph.4umer.com/

Back to top Go down

Solved Re: How to hide some text navbars

Post by Cassius Dio March 5th 2013, 7:51 am

Remove the CSS codes and add to JavaScript codes management:
Code:
$(document).ready(function(){
$('li').has('a.mainmenu[href="/faq"]').hide();
$('li').has('a.mainmenu[href="/calendar"]').hide();
$('li').has('a.mainmenu[href="/groups"]').hide();
});
Cassius Dio
Cassius Dio
Forumember

Male Posts : 581
Reputation : 79
Language : Romanian &English
Location : Yellow Submarine

http://beatles.forummo.com/

Back to top Go down

Solved Re: How to hide some text navbars

Post by JAN2XONLINE March 5th 2013, 7:52 am

Awesome dude! Thank you!

Locked!
JAN2XONLINE
JAN2XONLINE
Forumember

Male Posts : 943
Reputation : 32
Language : Tagalog, English
Location : Alberta, Canada

http://animeph.4umer.com/

Back to top Go down

Solved Re: How to hide some text navbars

Post by Sanket March 5th 2013, 7:54 am

Topic Solved & Locked
Sanket
Sanket
ForumGuru

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

Back to top Go down

Back to top

- Similar topics

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