Last active
December 26, 2015 20:39
-
-
Save srikat/7210288 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-entry', | |
'name' => __( 'After Entry', 'metro' ), | |
'description' => __( 'This is the after entry section.', 'metro' ), | |
) ); | |
//* Hooks after-entry widget area to single posts | |
add_action( 'genesis_entry_footer', 'metro_after_post' ); | |
function metro_after_post() { | |
if ( ! is_singular( 'post' ) ) | |
return; | |
genesis_widget_area( 'after-entry', array( | |
'before' => '<div class="after-entry widget-area"><div class="wrap">', | |
'after' => '</div></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
/* Social sharing buttons below single posts */ | |
.after-post-social { | |
display: table; | |
margin: 0 auto; | |
} | |
.after-post-social-title { | |
text-align: center; | |
font-weight: bold; | |
} | |
.after-post-social-btn { | |
float: left; | |
margin-right: 0.9rem; | |
} | |
.after-post-social-btn:last-child { | |
margin-right: 0; | |
} | |
@media only screen and (max-width: 1139px) { | |
.after-post-social-twitter { | |
clear: both; | |
} | |
} | |
@media only screen and (max-width: 1024px) { | |
.after-post-social-btn { | |
margin-right: 0; | |
float: none; | |
margin-bottom: 0.5em; | |
} | |
.after-post-social-btn:last-child { | |
margin-bottom: 0; | |
} | |
} | |
@media only screen and (max-width: 480px) { | |
.after-post-social-btn { | |
margin-bottom: 0.5em; | |
float: none; | |
} | |
.after-post-social-btn:last-child { | |
margin-bottom: 0; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment