Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+2 votes
in Themes by
This is a very basic question, but I'm a novice and I couldn't find the answer.

I using the Snow theme, and I would like to change it slightly in how it behaves for small screens. I would like the "Ask a question"-button to only appear on selected pages.

Example: Go to http://www.question2answer.org/qa/ and make your browser small, so that the green button with text "Ask a Question" appears. Then click that button to start entering the question. At this point I think the green "Ask a question" button should disappear (because I'm already asking a question) and I want to modify my "version" of the theme to behave like this.

Can someone help me understanding how to do that?

Q2A version: 1.7.4

1 Answer

+3 votes
selected by
Best answer

This is not as straightforward as it seems. The thing is the search box and the ask button are too tied together in SnowFlat. Adding it as answer here would be too long. However, I've created a Gist with the changes you need to apply so that it looks good (without also hiding the search box). https://gist.github.com/pupi1985/f9107b7c30f95fd00e22ce2e686bbf8c/revisions

This is how it looks without the redundant ask button:

Awesome! Thanks!
@pupi1985 I have one problem. Why select category load after load site scripts.
Example: I edit question. After i edit button load select category load slow. After my site all head scripts load and after load category.
How i load select category load fast.
Hey Yerbol! That is completely unrelated to this answer or question. Please, post a new question so that you can receive answers. Thanks :)