Welcome to my blog! This blogging is designed to help you start creating a professional blogging. All the blogging tips and tutorials will enable you to learn blogging in several weeks. If you think this blog is useful, please donate $1.00 via your paypal account.

Tuesday, August 25, 2009


how to place the adsense gadget on the left/right side of layout

By default, the Adsense gadget can be placed on the sidebar or footer or header or between posts as shown below(click the image to zoom in).

How about placing the adsense gadget at the left/right side of the main page? as shown below (click the image to zoom in). By doing this, the effect will be like the one shown on my blog homepage.

To do this, you need to change the layout in the HTML editing mode.

<table><tr>
<td valign='top'>LEFT Adsense gadget</td>
<td>Body Layout</td>
<td valign='top' >RIGHT Adsense gadget</td>
</tr></table>


Where the body layout is the code between body tag of the original HTML template file, and the left/right adsense gadget code is like this

<div id='sidebar-wrapper'>
<b:section class='sidebar' id='sidebar1' preferred='yes'>
<b:widget id='AdSense1' locked='false' title='' type='AdSense'/>
</b:section>
</div>


and


<div id='sidebar-wrapper'>
<b:section class='sidebar' id='sidebar2' preferred='yes'>
<b:widget id='AdSense2' locked='false' title='' type='AdSense'/>
</b:section>
</div>

No comments:

Post a Comment