Skip to content

Instantly share code, notes, and snippets.

@sirjonathan
Created September 25, 2012 03:21
Show Gist options
  • Save sirjonathan/3779802 to your computer and use it in GitHub Desktop.
Save sirjonathan/3779802 to your computer and use it in GitHub Desktop.
Feature Box Code
function hook_after_header() {
do_action('hook_after_header');
}
function feature_box() {
// First, set your conditions - When does it display?
if(is_home() || is_single() || is_page('offer') ) { ?>
<div id="feature-wrapper">
<div id="feature-offer">
<h2>Free Course: Four Weeks To Your First Client!</h2>
<div class="details">
<h3>Here's what I have for you:</h3>
<ul>
<li>A <strong>step-by-step</strong> guide to building a WordPress-powered website for your business - <em>even if you've had no prior experience</em>.</li>
<li>15+ <strong>specific strategies</strong> for getting your first web development client.</li>
<li><strong>Bonus:</strong> A list of the <strong>resources and tools</strong> I use to run and grow my freelance business.</li>
</ul>
</div>
<div class="optin">
<div class="alert">
<p>"Four Weeks To Your First Client" is a free 7-part course and an ongoing "WordPress Business" email newsletter.</p>
</div>
[AWeber Optin Form Goes here ]
<div class="quote">
<span>"Jonathan is one of the best. You're going to love his courses!"</span>
<cite>-Matt Geri, Entrepreneur/WordPress Developer</cite>
</div>
</div>
</div>
</div>
<?php }
}
add_action('hook_after_header', 'feature_box')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment