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.


if (is_single()) { ?>

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

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


<? } ?>

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 “.

  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?

    • GoGi says

      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.

Previous Post:
Next Post: