Generate Inside Container Hook and Ads
-
Hi,
I’ve created a hook via Code Snippets. Also included an ads unit.
add_action( 'generate_inside_container','insert_into_content' ); function insert_into_content() { ?> <?php if ( is_single() ) : ?> <script async src="https://ads link"> my ads unit id </script> <?php endif; ?> <?php }
Ads displays fine but it flags a “Your Site is Experiencing a Technical Issue” error.
There probably is a basic error in it but I have no clue.
Help please – thanks!
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Generate Inside Container Hook and Ads’ is closed to new replies.