WordPress.org

Ready to get started?Download WordPress

Forums

Ad Injection
Hardcode ad spots into theme (1 post)

  1. Meag
    Member
    Posted 1 year ago #

    Hello,
    I am looking for a way to hardcode adspots into my theme useing the ad injection plugin and the "Alt Ad Spots".
    I was thinking of something like this:

    <?php if (( function_exists('adinj_print_ad')) && (adinj_print_ad('ad_bottom_alt_1') =''){ ?>
    	<?php { adinj_print_ad('ad_bottom_alt_1'); } ?>
    <?php } else { ?>
    	<?php if ( function_exists('adinj_print_ad')) && (adinj_print_ad('ad_bottom_alt_2') =''){ ?>
    		<?php { adinj_print_ad('ad_bottom_alt_2'); } ?>
    	<?php } ?>
    <?php } ?>

    I cant figure out how to check if the code was inserted into the "Alt Ad Code box" or if its empty.
    Maybe there is an easier way I didnt find?

    Any help is appreciated.
    Regards
    Meags

    http://wordpress.org/extend/plugins/ad-injection/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic