hello Please How i can add Adsense in the bottom of post Q2A 1.7 Snowflat theme And thanx
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 '); }
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 '); }
Welcome to the Q&A site for Question2Answer.
If you have a question about Q2A, please ask here, in English.
To report a bug, please create a new issue on Github or ask a question here with the bug tag.
If you just want to try Q2A, please use the demo site.