Genius is nothing but great effort applied. – Awa Kenzo

How To: Use OpenX in Thesis

I’ll be showing the basics of getting OpenX to work in Thesis. This tutorial assumes you have OpenX installed as well as experience with custom_functions.php or Thesis OpenHook.

how-to-use-openx-in-thesis

Part 1 – Getting Started

In this screen-cast I will show you how to:

  1. Setup an Advertiser
  2. Build a Campaign
  3. Add a Banner

Part 2 – Zones

In part 2 of the series, I will show you how to:

  1. Add a Website
  2. Create a Zone

Part 3 – Deployment

In the final installment, I’ll explain:

  1. Setup of the <div> tags for customization and positioning
  2. Insertion of the OpenX Invocation Code
  3. Setup of the Custom.css

————- PASTE INTO HEADER HOOK or CUSTOM_FUNCTIONS.PHP: ——————

// Leaderboard Ad
function leaderboard_html() {?>
<div id="leaderboard">
<iframe id='XXXXXX' name='XXXXX' src='http://d1.openx.org/afr.php?zoneid=XXXXX&amp;cb=624' frameborder='0' scrolling='no' width='728' height='90'><a href='http://d1.openx.org/ck.php?n=XXXXX&amp;cb=256' target='_blank'><img src='http://d1.openx.org/avw.php?zoneid=XXXXX&amp;cb=624&amp;n=XXXXX' border='0' alt='' /></a></iframe>
</div>
<?php }
add_action('thesis_hook_before_html','leaderboard_html');

————- PASTE INTO CUSTOM.CSS: ——————

.custom #leaderboard {
height:100px;
width:100%;
text-align:center;
margin:10px 0;
}

For further help, feel free to comment below. Thank you for watching and I hope I’ve helped answer some of your questions!

Greg Rickaby runs on the Genesis Framework

Genesis Framework

The theme you're viewing is the eleven40 Child Theme, which was built on Genesis.

Genesis empowers you to quickly and easily build incredible websites with WordPress. Whether you're a novice or advanced developer, Genesis provides the secure and search-engine-optimized foundation that takes WordPress to places you never thought it could go. It's that simple - start using Genesis now!

Take advantage of the 6 default layout options, comprehensive SEO settings, rock-solid security, flexible theme options, cool custom widgets, custom design hooks, and a huge selection of child themes ("skins") that make your site look the way you want it to. With automatic theme updates and world-class support included, Genesis is the smart choice for your WordPress website or blog.

Comments

  1. Harold says:

    This is amazing!!! I am new to thesis but I am going to stick to your blog to learn a ton =D

  2. Rodrigo says:

    Hello Greg I am trying to load a banner using thesis hook for Wp i want the banners to appear at the side of the post but i dont now in wich of the hook zones i have to paste the code i have tried in several way but the banner never appears.
    This is my website any help will be greatly apreciated http://www.designplatgrounds.com

  3. Rodrigo says:

    Hello Greg I am trying to load a banner using thesis hook for Wp i want the banners to appear at the side of the post but i dont now in wich of the hook zones i have to paste the code i have tried in several way but the banner never appears.
    This is my website any help will be greatly apreciated http://www.designplatgrounds.com

Speak Your Mind

*