Working with AdSense

Solved5.38K viewsThemes
0

Is there any widget or any settings you would suggest, that can work with out of the box with adsense ads. My 95% users visit only from mobile, so keeping the code in Text-widget in siderbar didn’t suit me.

So, at present I have modified –

1. home.php to show a responsive Ad on top of questions list.

2. question.php to show a single responsive ad only after question.

I was wondering is there any easier way to put a single ad on all AskBug pages, or will I have to edit all rest of the pages, like users, categories etc. If it’s the later one, then I am only interested in one page, which I am unable to find, i.e. the one which shows list of questions. Which part of the code is it?

Thanks.

1

For showing ads above questions list you can use AP Before widget position. If you want a position in all pages you can simply register a widget position in header.php. Read Widget API doc.

You are viewing 1 out of 2 answers, click here to view all answers.