Advert tags based on Category, Page or post

Posted in: Newspaper
Post count: 97

Hello,

I have setup some PHP but it does not run in the ADS spot.

Eg. I have ARTICLE INLINE AD and have

<?php global $res_str; ?>
<?php if($res_str == ‘home’){ ?>
<div id=”homempucon_display”></div>
<script>…..

I have it in the widget areas and custom header advert spot but cannot get it to work via the ADS section in Theme panel. Please help! Thank you 😉

Post count: 22421

Hello,

That is because the panel ad spot does not accept PHP code. You can use a plugin to achieve our goal, of if you do not want to use plugins you can modify the theme files but it will require php knowledge. You can modify for example td_block_ad_box.php and use the ad box element on your website.

Thanks.

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.