-
-
Save braddalton/40de0535abb5ff9c063f 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
add_action( 'wp_enqueue_scripts', 'enqueue_dashicons_front_end' ); | |
function enqueue_dashicons_front_end() { | |
wp_enqueue_style( 'dashicons-style', get_stylesheet_uri(), array('dashicons'), '1.0' ); | |
} | |
function author_profile_social_links( $contactmethods ) { | |
$contactmethods['rss_link'] = 'RSS URL'; | |
$contactmethods['google_link'] = 'Google URL'; | |
$contactmethods['twitter_link'] = 'Twitter URL'; | |
$contactmethods['facebook_link'] = 'Facebook URL'; | |
return $contactmethods; | |
} | |
add_filter( 'user_contactmethods', 'author_profile_social_links', 10, 1); |
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
.author-info { | |
margin: 80px auto; | |
max-width: 600px; | |
} | |
.author-twitter-link:before { | |
content: "\f301"; | |
color: #00ACED; | |
-webkit-font-smoothing: antialiased; | |
font: normal 20px/1 'dashicons'; | |
margin-right: 5px; | |
margin-top: 5px; | |
vertical-align: top; | |
} | |
.author-twitter-link { | |
display: inline-block; | |
line-height: normal; | |
margin: 10px 0; | |
color: #fff; | |
} | |
.author-facebook-link { | |
display: inline-block; | |
line-height: normal; | |
margin: 10px 0; | |
color: #fff; | |
} | |
.author-facebook-link:before { | |
content: "\f304"; | |
color: #46629E; | |
-webkit-font-smoothing: antialiased; | |
font: normal 20px/1 'dashicons'; | |
margin-right: 5px; | |
margin-top: 5px; | |
vertical-align: top; | |
} | |
.author-google-link { | |
display: inline-block; | |
line-height: normal; | |
margin: 10px 0; | |
color: #fff; | |
} | |
.author-google-link:before { | |
content: "\f462"; | |
color: #d34836; | |
-webkit-font-smoothing: antialiased; | |
font: normal 20px/1 'dashicons'; | |
margin-right: 5px; | |
margin-top: 5px; | |
vertical-align: top; | |
} | |
.author-rss-link:before { | |
content: "\f303"; | |
color: orange; | |
-webkit-font-smoothing: antialiased; | |
font: normal 20px/1 'dashicons'; | |
margin-right: 5px; | |
margin-top: 5px; | |
vertical-align: top; | |
} | |
.author-rss-link { | |
display: inline-block; | |
line-height: normal; | |
margin: 10px 0; | |
color: #fff; | |
} | |
.author-email-link:before { | |
content: "\f466"; | |
color: #D4D0C8; | |
-webkit-font-smoothing: antialiased; | |
font: normal 20px/1 'dashicons'; | |
margin-right: 5px; | |
margin-top: 5px; | |
vertical-align: top; | |
} | |
.author-email-link { | |
display: inline-block; | |
line-height: normal; | |
margin: 10px 0; | |
color: #fff; | |
} | |
.author { | |
background-color: #333; | |
color: #fff; | |
} | |
.author-subtitle { | |
color: #1E8CBE; | |
} | |
.author-avatar { | |
float: right; | |
margin: 0 30px 20px 0; | |
padding: 2px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment