Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
500 views
in Q2A Core by
We'd like to have the ability to insert some html in the main section of the home page so that we can post things like announcements and explanations or direct attention to particular questions (we'll be calling them "discussions"), when a user first reaches our Q2A home page.  I don't see a way to do this without modifying qa-page-home.php, which I'd like to avoid, if possible.  Am I missing something?

Alternately, or additionally, it would be really useful to be able to display custom html on a page (in the main section), conditionally, based on a query string parameter.  E.g., when we refer readers of our blog to a question on our Q2A platform, we could add a qa param to the Q2A link and display some kind of "Welcome!  Here's what you do next...," type of message.
by
Just looked at the 1.5 roadmap and noticed this in the minor features:

- Optional custom explanatory HTML to display to users asking a question, answering a question, or registering.

Is there a good way to achieve something like this now?
by
can you explain me how to do this? because i not really understand php :(
so this is php of the theme :
 class qa_html_theme extends qa_html_theme_base
    {
        function nav_user_search() // reverse the usual order
        {
            $this->search();
            $this->nav('user');
        }
    }


where i have to put  $this->template and how to add some html in here? thanks alot

1 Answer

0 votes
by
Noticed that this looks like it's already answered here:

http://www.question2answer.org/qa/2181/feature-request-attention-explanation-question-registration

Sorry about the duplicate.
by
Yes that is currently the best way to add custom content to any page. Just create a custom theme and override a few functions.
...