adsense

How to Insert Adsense Code Into a WordPress Blog Post





1. Log in to Google AdSense and click 'My ads' to go to your AdSense ads. Click 'Get code' under the name of the ad you want to put in WordPress. When the pop-up box opens, click the text, right-click and click 'Copy' to copy the code. Click 'Close.'
2. Log in to WordPress. Click 'Appearance' and 'Editor.' When the theme editor loads, click 'Single Post (single.php)' or similar name under 'Templates' on the right of the page.

3. Look for a line similar or identical to the following piece of code in the PHP file. Note that the 'the_content' line indicates where the blog post content is placed:
Read the rest of this entry
'); ?>
4. Click above that line of code if you want the AdSense ad to appear above the post content. Click below that line of code instead if you want the AdSense ad to be shown below or after the post content.
5. Type HTML code to create formatting for the code before you insert it. For instance, type '
' without the quotes to make sure that the ad will be in the center when you place it.
6. Right-click and click 'Paste,' or hit 'Control' and 'V' simultaneously to paste the AdSense code. Close the HTML tag or tags you added. For example, type '
' to close the
tag.
7. Click 'Update File.'
8. Type the Web address of your WordPress blog in the browser location bar to visit the blog, or click its name on the top left of the WordPress admin page. Click any post to see how the AdSense ad looks on it. A blank space may appear at first, because it takes some time for ads to be generated according to the keywords in the post.

Comments

0 Responses to "How to Insert Adsense Code Into a WordPress Blog Post"

Post a Comment

Popular Posts

About