Theme Won’t Allow Adsense Javascript?
-
I have what I believe is a simple problem. I have a wordpress theme that easily allows you to post “sponsor banners” on the right side, but the problem arises due to the fact that it is set up to only allow me to enter a “Banner Image” and a “Banner URL” instead of a simple HTML text field (which I need due to the fact AdSense is a Javascript code). It also allows for a banner ad at the bottom of every post and that DOES allow HTML. How would I change (in my theme options area) the 2 seperate fields for url and image to a simple one field for html entry?
Heres is the “Sponsors.PHP” file:
<div class=”banner”>
-
<?php
$ban1 = get_option(‘yes_banner1’);
$url1 = get_option(‘yes_url1’);
?>
” rel=”bookmark” title=””><img src=”<?php echo ($ban1); ?>” alt=”” style=”vertical-align:bottom;” /> -
<?php
$ban2 = get_option(‘yes_banner2’);
$url2 = get_option(‘yes_url2’);
?>
” rel=”bookmark” title=””><img src=”<?php echo ($ban2); ?>” alt=”” style=”vertical-align:bottom;” /> -
<?php
$ban3 = get_option(‘yes_banner3’);
$url3 = get_option(‘yes_url3’);
?>
” rel=”bookmark” title=””><img src=”<?php echo ($ban3); ?>” alt=”” style=”vertical-align:bottom;” /> -
<?php
$ban4 = get_option(‘yes_banner4’);
$url4 = get_option(‘yes_url4’);
?>
” rel=”bookmark” title=””><img src=”<?php echo ($ban4); ?>” alt=”” style=”vertical-align:bottom;” />
</div>
-
<?php
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Theme Won’t Allow Adsense Javascript?’ is closed to new replies.