Skip to content

Instantly share code, notes, and snippets.

@bryanwillis
Forked from heycharchar/functions.php
Created January 9, 2016 02:21
Show Gist options
  • Save bryanwillis/c262abd7dfa95702df09 to your computer and use it in GitHub Desktop.
Save bryanwillis/c262abd7dfa95702df09 to your computer and use it in GitHub Desktop.
Add Genesis Box on Single Posts support for HTML5 by Charlotte Anne
<?php
//* Do NOT include the opening php tag
/** Add Genesis Box on Single Posts support for HTML5 by Charlotte Anne**/
add_action('genesis_before_comments', 'child_genesis_box');
function child_genesis_box() {
if ( is_single() )
require(CHILD_DIR.'/genesis-box.php');
}
<div id="genesis-box">
<h3>YourDomain.com runs on the Genesis Framework</h3>
<a href="AFFILIATE LINK GOES HERE"><img class="alignright" src="IMAGE URL GOES HERE" alt="Genesis Framework" title="Check out the Genesis Framework" /></a>
<p>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 <a href="AFFILIATE LINK GOES HERE">Genesis</a> now!</p>
<p>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.</p>
</div>
/* Genesis Box
------------------------------------------------------------ */
#genesis-box {
background-color: #f9f7f1;
border: 1px solid #dedcd7;
margin: 10px;
overflow: hidden;
padding: 10px;
}
#genesis-box h3 {
font-size: 18px;
font-weight: normal;
margin: 0 0 10px;
padding: 0;
text-transform: none;
}
#genesis-box .alignright {
background: #fff;
border: 1px solid #ddd;
float: right;
margin: 0 0 5px 10px;
padding: 7px;
}
#genesis-box p {
color: #666;
font-family: 'Century Gothic', Times, 'Times New Roman', serif;
font-size: 14px;
font-weight: normal;
line-height: 22px;
margin: 0;
padding: 0;
text-decoration: none;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment