Wednesday, March 13, 2013

How to Insert Banners in Between WordPress Posts





1. Open the 'Appearance' menu on the left side of the WordPress dashboard, and then click 'Editor.'
2. Click the 'Main Index Template' link on the right side of the page to edit the index.php file for your WordPress theme.

3. Locate the code '
' or '
' in the main area of the page. If you do not see either of these, click 'loop.php' on the right side of the page to edit that file instead of index.php. Place the cursor at the beginning of the line, and then press 'Enter' to create a new blank line above the code. Move the cursor to the blank line.
4. Enter the code
in the blank line. Copy the code from this article to avoid a typing error. Edit the number after 'showads' to change where the banner advertisement is shown on your website. To display the advertisement after the third post, for example, change the code to 'showads = 3.'
5. Locate the code '
' or '
' in the file, and place the cursor at the start of a blank line immediately above the code.
6. Type
(ad code)
in the blank line. Change '(ad code)' to the code received from your advertising partner to display the banner, removing the parentheses and words 'ad code.'
7. Click the 'Update File' button at the bottom of the page.

adsense tips Copyright © 2011 | Template created by O Pregador | Powered by Blogger