Skip to content

Instantly share code, notes, and snippets.

@braddalton
Last active August 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save braddalton/ee282a4eca6c90a3694f to your computer and use it in GitHub Desktop.
Save braddalton/ee282a4eca6c90a3694f to your computer and use it in GitHub Desktop.
<a href="http://example.com" class="button">Click This Button!</a>
genesis_register_sidebar( array(
'id' => 'after-nav',
'name' => __( 'After Nav', 'wpsites' ),
'description' => __( 'This is the after header section.', 'wpsites' ),
) );
add_action( 'genesis_after_header', 'wpsites_widget_over_image' );
function wpsites_widget_over_image() {
if ( ! is_front_page() )
return;
genesis_widget_area( 'after-nav', array(
'before' => '<div class="after-nav widget-area">',
'after' => '</div>',
) );
}
.after-nav {
background-image: url('images/bg.jpg');
background-repeat: repeat;
}
.after-nav .widget_text {
color: #fff;
font-family: Georgia;
font-size: 20px;
text-align: center;
padding-top: 50px;
padding-bottom: 20px;
}
.after-nav .widget-title {
font-size: 25px;
color: #fff;
text-align: center;
}
.after-nav .button {
background-color: #1E8CBE;
margin-top: 0px;
color: #fff;
width: 280px;
}
.after-nav .button:hover {
background-color: orange;
color: #fff;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment