Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #673724

    Hi,

    what is the best way to inject some advertising code into a space AFTER the related posts area?
    e.g. <?php if(function_exists('the_ad_group')) the_ad_group(4); ?>

    Will I have to modify the single.php template?
    Or can I do that through some function in functions.php?

    Tx,
    Frank

    #675146

    Hey,

    Try the following (child theme / theme functions.php):

    add_action('ava_after_content', function($id, $content) {
    	if($content == 'post'){
    		//CODE HERE
    	}
    });

    Best regards,
    Josue

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.