Last active
January 9, 2016 02:21
-
-
Save heycharchar/6647548 to your computer and use it in GitHub Desktop.
Add Genesis Box on Single Posts support for HTML5 by Charlotte Anne
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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'); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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