<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
> <channel><title>Smart Pandian &#187; google ad</title> <atom:link href="http://smartpandian.com/tag/google-ad/feed/" rel="self" type="application/rss+xml" /><link>http://smartpandian.com</link> <description>as simple as that...</description> <lastBuildDate>Sun, 27 Nov 2011 05:17:18 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3</generator> <item><title>Google Ads &#8211; My First WP Hack</title><link>http://smartpandian.com/google-ads-my-first-wp-hack/</link> <comments>http://smartpandian.com/google-ads-my-first-wp-hack/#comments</comments> <pubDate>Thu, 09 Apr 2009 15:44:41 +0000</pubDate> <dc:creator>Pandian</dc:creator> <category><![CDATA[google ad]]></category> <category><![CDATA[hack]]></category> <category><![CDATA[post footer]]></category> <category><![CDATA[Wordpress]]></category> <guid
isPermaLink="false">http://smartpandian.com/?p=222</guid> <description><![CDATA[The Objective of this hack to display Google Ads (or) some copyright notice at the bottom of every page of wordpress. Before Jumping into the Hack, There is two other way to acheive the same. Edit the footer.php file in the wordpress theme folder (wp-contents/themes/) to add the Google-ad code.  (The disadvantage of this method [...]
Related posts:<ol><li><a
href='http://smartpandian.com/hacking-wordpress/' rel='bookmark' title='Hacking WordPress!!!'>Hacking WordPress!!!</a></li><li><a
href='http://smartpandian.com/wordpress-23/' rel='bookmark' title='WordPress 2.3'>WordPress 2.3</a></li><li><a
href='http://smartpandian.com/i3theme/' rel='bookmark' title='i3Theme'>i3Theme</a></li></ol>]]></description> <content:encoded><![CDATA[<p>The Objective of this hack to display Google Ads (or) some copyright notice at the bottom of every page of wordpress.</p><p>Before Jumping into the Hack, There is two other way to acheive the same.</p><ol><li>Edit the footer.php file in the wordpress theme folder (wp-contents/themes/) to add the Google-ad code. <br
/> (The disadvantage of this method is that, when you change the theme, you need again edit the footer.php file in the new theme)</li><li>Using a wordpress plugin <a
href="http://wordpress.org/extend/plugins/add-post-footer/">post footer</a>. By this plugin, one can add  any text/html to the footer of the posts. <br
/> (Disadvantage : Plugin Advertisement / unwanted  upgrades)</li></ol><p>Now, the Hack Script is as follows<br
/> Place your google code at the html commented section of code below</p><pre class="brush: php; highlight: [4]; title: ; notranslate">
 &lt;?
  function sp_add_page_footer() {
 ?&gt;
 &lt;!--You're text or google Ad goes here--&gt; 
 &lt;?
 }
 add_action('get_footer', 'sp_add_page_footer', 10);
 ?&gt;
</pre><p> That&#8217;s it.. copy the code, place it in my-hacks.php which is created at the wordpress root folder.  Voila!! The first wordpress hack</p><p>Related posts:<ol><li><a
href='http://smartpandian.com/hacking-wordpress/' rel='bookmark' title='Hacking WordPress!!!'>Hacking WordPress!!!</a></li><li><a
href='http://smartpandian.com/wordpress-23/' rel='bookmark' title='WordPress 2.3'>WordPress 2.3</a></li><li><a
href='http://smartpandian.com/i3theme/' rel='bookmark' title='i3Theme'>i3Theme</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://smartpandian.com/google-ads-my-first-wp-hack/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
