Trevor Lyman
asked 4 years ago

Hello,

I just bought this plugin and am trying to add adsense to the site.

You can see that the adsense is working on these two pages, and you can see exactly where I want the ad to be.

Questions

Ask A Question

The problem I’m having is that I don’t know which file/template to modify in order to get the ad to show up in the same place on the question page.

So, for example, you can see the adsense is missing from this page:

What is SpeakLiberty.org?

Can you please tell me what file I need to modify to add my adsense code to this page?

Thank you

1 Answers
DominicStaff
answered 4 years ago

At the moment, the plugin uses the single.php file of the theme. If you want to edit the file for the single question page, you can create a new .php file(eg: custom-single-question.php) and copy the file of the single paste into the custom-single-question.php file and customize it.

Also, to the plugin work with the new file you need open the Template.php file and find the line 685 and replace the single.php with your new file.

Dominic Staff
replied 4 years ago

If you still face their issue, you can send me username & password of your site for further checking.

Powered by DW Question & Answer Pro