Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
490 views
in Q2A Core by
If you need to output some DIV between question title H1 (.entry-title) and question body (.q-view) you can use an advanced theme*:

        function q_view($q_view) {
            
            $this->output('
            <div class="adholder-top">
                    My custom content here
            </div>
            ');

            // call default method output
            qa_html_theme_base::q_view($q_view);
         }

That should do it.

 

*advanced theme: put the code in this file: qa-theme/yourtheme/qa-theme.php
by
Alternative (just found later):

function title() {
            qa_html_theme_base::title();       
                $this->output('<div>
            My custom content here
        </div>');
        }

suggested by user Bak: http://www.question2answer.org/qa/22683/google-adsense-mobile-ads-plugin

Please log in or register to answer this question.

...