Welcome to the Question2Answer Q&A. There's also a
demo
if you just want to try it out.
Login
Login
Register
All Activity
Questions
Hot!
Unanswered
Tags
Users
Ask a Question
About
Wiki
Welcome to the Q&A for
Question2Answer
.
If you have questions about the platform,
click here to ask
and please use English.
If you just want to try Q2A, please use the
demo
, which also grants admin access.
Apr 29:
Q2A 1.5.2
Related questions
How will i remove the Questions/Unasnwered/Tags/Users/Ask Question Panel
How to add a link : Ask another question only on the question site where users are directed after entering a question ?
How can I activate the new feature "remove accents from Roman letters in question URLs"?
How can I add a php page and link it from the nav_user_search()
How do I get the current page/section from a theme or plugin?
How can i get this good looking "ask a question" box and the views counter?
How can i change Ask a Question Button style on the Nav
HOW-TO: Remove ASK A QUESTION button?
How do I change the text of the navigation bar?
How can I place the "Ask Box" plugin also on a 'question'-page?
All categories
Q2A Core
(3,252)
Plugins
(356)
How do I remove the link "Ask a question" from the navigation?
0
votes
How do I remove the link "Ask a question" from the navigation?
asked
Aug 25, 2011
in
Q2A Core
by
G4
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
2 Answers
+1
vote
I wouldn't recommend it (that's why it's not an admin option) but you could always target CSS class qa-nav-main-ask in a custom theme.
answered
Aug 25, 2011
by
gidgreen
Please
log in
or
register
to add a comment.
–1
vote
You could also target the "ask" key:
function nav_item($key, $navlink, $class, $level=null)
{
if($class == 'nav-main' && $key == 'ask') return false;
...
answered
Aug 25, 2011
by
NoahY
edited
Aug 26, 2011
by
NoahY
Thanks for your help, it came out like this:
function nav_item($key, $navlink, $class, $level=null)
{
if($class == 'nav-main' && $key == 'ask')
return false;
else
qa_html_theme_base::nav_item($key, $navlink, $class, $level=null);
}
P.S. continue did not help
Oh you're so right :) I've edited my answer accordingly.
Please
log in
or
register
to add a comment.