Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
1.6k views
in Themes by

hello  

Please  How i can add Adsense in the  bottom of post 


Q2A 1.7
Snowflat theme 


And thanx  

1 Answer

+2 votes
by
edited by

I'm not sure cuz I didn't tested, but putting this:

$this->output(' YOUR ADSENSE CODE GOES HERE ');

after line 484 on qa-theme.php should do it. Like this example below:

    public function q_view_main($q_view)
    {
        $this->output('<div class="qa-q-view-main">');

        if (isset($q_view['main_form_tags']))
            $this->output('<form ' . $q_view['main_form_tags'] . '>'); // form for buttons on question

        $this->post_avatar_meta($q_view, 'qa-q-view');
        $this->q_view_content($q_view);
        $this->q_view_extra($q_view);
        $this->q_view_follows($q_view);
        $this->q_view_closed($q_view);
        $this->post_tags($q_view, 'qa-q-view');

        $this->q_view_buttons($q_view);
        $this->c_list(isset($q_view['c_list']) ? $q_view['c_list'] : null, 'qa-q-view');

        if (isset($q_view['main_form_tags'])) {
            if (isset($q_view['buttons_form_hidden']))
                $this->form_hidden_elements($q_view['buttons_form_hidden']);
            $this->output('</form>');
        }

        $this->c_form(isset($q_view['c_form']) ? $q_view['c_form'] : null);

        $this->output('</div> <!-- END qa-q-view-main -->');

        $this->output(' YOUR ADSENSE CODE GOES HERE ');
    }

by
this donne Ads just after "EDIT , close , hide ... " icons

I need to insert it just after the  last word of post

and thanx
by
Oh ok, I was assuming you wanted this after the question 'chunk' because you didn't specified it on your question. Try to put the code after this line instead:  $this->q_view_content($q_view);
...