How to Insert Adsense in the Header of a Thesis Theme
The Thesis theme is one of the most popular for WordPress users. Thesis offers a high level of flexibility and a sleek design that makes it ideal for Internet marketing. Unfortunately, Thesis is not controlled by a number of style sheets, as is typical for most other WordPress themes. Thesis uses a single "custom_functions.php" file through which all theme changes must be made. Manipulating this PHP file by hand is difficult and cumbersome, particularly for a task such as adding Adsense to the header of your page. The easiest way to add Adsense to your header is to install an open-source plug-in that allows you to make changes to your Adsense ads without manually changing the custom_functions.php file.
Instructions
-
-
1
Enter your WordPress dashboard and find the plug-ins box in the left-hand tool bar. Click "Add New."
-
2
Type "Thesis OpenHook" into the search field and submit your query. The top result should be the OpenHook plug-in. Install the plug-in following the on-screen cues.
-
-
3
Return to your WordPress Dashboard. Click the OpenHook plug-in settings link in the "Appearances" box.
-
4
Click the "Header" tab in the OpenHook plug-in and insert the following code where you would like your ad to appear:
<div>
Adsense code
</div>
Replace "Adsense code" with your own adsense code. Save your changes.
-
5
Change the "<div>" line in the code to "<div id="header_ad">" if you need to alter the alignment, spacing or margins of your code. Add these additional style elements to the "custom.php" stylesheet in your Thesis theme, using the tag "#header_ad."
-
1