-
-
Save braddalton/ee282a4eca6c90a3694f to your computer and use it in GitHub Desktop.
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_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>', | |
) ); | |
} |
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
.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