Display Google ads in Emperor Gold Series Wordpress Themes
posted in Announcement |1. Edit hearder.php, insert 728×15 link unit ads before <div id=”main”>
2. Edit sidebar.php, insert square link unit 160×90 or wide skycrapper 160×600 in any location you want within the sidebar.
3. Edit single.php, insert large rectangle ads before and after the following code:
<div class=”entry”>
<?php the_content(’<p class=”serif”>Read the rest of this entry »</p>’); ?>
<?php link_pages(’<p><strong>Pages:</strong> ‘, ‘</p>’, ‘number’); ?>
4. Edit index.php, insert top large rectangle ads code after the script:
<?php if (have_posts()) : ?>
and insert bottom large rectangle ads code after the script:
<?php endwhile; ?>
5. Edit page.php, insert large rectangle ads code after <!– google_ad_section_start –> and insert another bottom large rectangle code before <!– google_ad_section_end –>
6. Edit search.php, insert top large rectangle ads code before <?php while (have_posts()) : the_post(); ?> and insert bottom large rectangle ads code after <?php endwhile; ?>
7. Edit style.css, change #main padding-top from 30px to 25px
#main {background: url(’images/content-box.png’) top left no-repeat; padding-top: 25px;}
and insert the following code at the end of the file
/* Begin ads and Stuff */
#adslinkunit {padding-top: 5px; padding-bottom: 0px}
#adssquarelinkunit {}
#adskyscrapper {}
#adstoplargerectangle {padding-left: 5px;}
#adsbottomlargerectangle {padding-left: 5px;}
/* End ads and Stuff */
** Wordpress Themes Resources Site **
1. Sample of header.php file
…..
<div id=”adslinkunit”>
insert your Google ads code here!
</div>
<div id=”main”>
<div id=”site”>
<div id=”column1″>
<a href=”#” mce_href=”#” name=”documentContent”></a>
<!– google_ad_section_end –>
…..
2. Sample of sidebar.php, insert the following ads code in any location you like the ads to display after the php scripts:
<?php if ( function_exists(’dynamic_sidebar’) && dynamic_sidebar(’Left Sidebar’) ) : else : ?>
<ul><li class=”listHeader”><b><font face=”Verdana” size=”2″><?php _e(’ ‘); ?></font></b></li>
<li class=”adssquarelinkunit”>
insert your google ads code here!
</li>
</ul>
<ul><li class=”listHeader”><b><font face=”Verdana” size=”2″><?php _e(’ ‘); ?></font></b></li>
<li class=”adskyscrapper”>
insert your google ads code here!
</li>
</ul>
3. Sample of single.php file
<div id=”adstoplargerectangle”>
insert your google ads code here!
</div>
<div class=”entry”>
<?php the_content(’<p class=”serif”>Read the rest of this entry »</p>’); ?>
<?php link_pages(’<p><strong>Pages:</strong> ‘, ‘</p>’, ‘number’); ?>
<div id=”adsbottomlargerectangle”>
insert your google ads code here!
</div>
4. Sample of index.php file
<?php if (have_posts()) : ?>
<div id=”adstoplargerectangle”>
insert your google ads code here!
</div>
<?php while (have_posts()) : the_post(); ?>
<!– google_ad_section_start –>
<div class=”post” id=”post-<?php the_ID(); ?>”>
<div class=”date”>
<span class=”date1″><?php the_time(’jS’) ?></span>
<span class=”date2″><?php the_time(’F') ?></span>
<span class=”date3″><?php the_time(’Y') ?></span>
</div>
<h2><a href=”<?php the_permalink() ?>” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”><?php the_title(); ?></a></h2>
<div class=”entry”>
<?php the_content(’Read the rest of this entry »’); ?>
</div>
<p class=”pageInfo”>posted in <?php the_category(’, ‘, __(’ and ‘)) ?> | <?php edit_post_link(’<span class=”iconEdit”>Edit</span>’, ”, ‘ | ‘); ?> <span class=”iconComment”><?php comments_popup_link(’0 Comments’, ‘1 Comment’, ‘% Comments’); ?></span></p>
</div>
<!– google_ad_section_end –>
<?php endwhile; ?>
<div id=”adsbottomlargerectangle”>
insert your google ads code here!
</div>
5. Sample of page.php file
<!– google_ad_section_start –>
<div id=”adstoplargerectangle”>
insert your google ads code here!
</div>
<h2><a href=”<?php echo get_permalink() ?>” rel=”bookmark” title=”Permanent Link: <?php the_title(); ?>”><?php the_title(); ?></a></h2>
<div class=”entry”>
<?php the_content(’<p>Read the rest of this page →</p>’); ?>
<?php link_pages(’<p><strong>Pages:</strong> ‘, ‘</p>’, ‘number’); ?>
</div>
<div id=”adsbottomlargerectangle”>
insert your google ads code here!
</div>
6. Sample of search.php file
……
<div id=”adstoplargerectangle”>
insert your google ads code here!
</div>
<?php while (have_posts()) : the_post(); ?>
<!– google_ad_section_start –>
<div class=”post”>
<h3 id=”post-<?php the_ID(); ?>”><a href=”<?php the_permalink() ?>” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”><?php the_title(); ?></a></h3>
<small><?php the_time(’l, F jS, Y’) ?></small>
<p class=”postmetadata”>Posted in <?php the_category(’, ‘) ?> | <?php edit_post_link(’Edit’, ”, ‘ | ‘); ?> <?php comments_popup_link(’No Comments »’, ‘1 Comment »’, ‘% Comments »’); ?></p>
</div>
<!– google_ad_section_end –>
<?php endwhile; ?>
<div id=”adsbottomlargerectangle”>
insert your google ads code here!
</div>
…….









