Return to Snippet

Revision: 33462
at October 8, 2010 22:32 by PM-Webdesign


Initial Code
function showads() {
return '<div id="adsense"><script type="text/javascript"><!�
google_ad_client = "pub-XXXXXXXXXXXXXX";
google_ad_slot = "4668915978";
google_ad_width = 468;
google_ad_height = 60;
//�>
</script>

<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>';
}

add_shortcode('adsense', 'showads');

<!-- Im Beitrag folgenden Code einfuegen -->
[adsense]

Initial URL
http://www.wpbeginner.com/wp-tutorials/25-extremely-useful-tricks-for-the-wordpress-functions-file/

Initial Description
Code in functions.php einfügen

Initial Title
Adsense Shortcode aktivieren

Initial Tags
wordpress

Initial Language
PHP