Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+4 votes
266 views
in Q2A Core by

How to hide the Ask button from asking questions page 

by
Cheap trick is to rename that button.

Expensive trick is to override ask button function with conditions like if !$template == 'ask'.
by
Where to find the ask button function in which file?
And  could you write the full if statement please
 if !$template == 'ask'  { then do what}
by
Sorry, I was not here in April and May.
ago by
Hello,

I have the same question. Can you explain a little bit more detailed how to hide the ask button in the mobile view so that there is only the search button left?

I am not familiar with coding but with a little bit help I see a chance to succeed.

Thanks for your assistance.

Feechen

1 Answer

+1 vote
by

Hello,

Since you're using Snowflat theme, you can edit your Snowflat/qa-theme.php file. Search for the function called "private function ask_button()". You can try

private function ask_button()     {

if ($template != 'ask' )

{all original codes here;}

}

...