WordPress Thesis Theme: How to wrap text around Google Adsense

In order to increase the ads CTR you need to place the Google Adsense codes at a higher placement on your site. Google Adsense does well when placed ATF (Above the Fold), i.e. before the user scrolls down to view the rest of the content.

Google ad size 336×280 is one of the best performing ad and it can earn you the most revenue when used next to the content wrapped around the ad. You can easily create that effect on WordPress Thesis Theme using simple codes.

Before we begin you should be using the Thesis theme and should have Thesis OpenHook installed.

How to wrap text around adsense in Thesis Theme

  1. In Appearance look for the Thesis OpenHook link and click it.
  2. When you get the Thesis OpenHook page find “Before Post”
  3. For the Before Post box add the following code listed below and save it.

<?php

if (is_single()) { ?>

<div style=”float:left;margin-right:8px”>

{Your AdSense code ad size (336×280) goes here}

</div>

<? } ?>

This simple code will add the 336×280 AdSense ad on every single post page that will float on left side and right side you can see the text wrapped around the ad.  In case you want the ad to be shown on the right side change the float: left to float: right.

Appearance openhook setting

Appearance openhook setting

Google AdSense wrapped around text in thesis theme

Google AdSense wrapped around text in thesis theme

 

 

{ 10 Responses }

  1. Juha says

    The code does not work if you just copy this code because of the brackets. You have to change bracket from ” to “.

    Thumb up 0 Thumb down 0
  2. says

    The script works, I'm using it before post, exactly where it says "Equivalent to adding to thesis_hook_before_post in your custom_functions.php file." The adsense ad is placed below the title and before the content, but the static post text is not wrapping around the ad. any idea?

    Thumb up 0 Thumb down 0
    • GoGi says

      Hi,
      look at the double quotes its ” in ”float:left;margin-right:5px" change the quotes to "float:left;margin-right:5px"
      Better if you manually edit the quotes instead of copy paste.

      Thumb up 0 Thumb down 0

Comment Policy: Your words are your own, be nice and helpful. Do not repeat what you already said. Please, use your real name. It may take some time for the comment to show. Pls do not copy paste content, specs from other site.
You need to Login to VOTE!
(Optional : Register or LOGIN).


Leave a Reply

Your email address will not be published. Required fields are marked *

Current day month ye@r *


Previous Post:
Next Post: