Skip to content

Instantly share code, notes, and snippets.

View ohdesigner's full-sized avatar

Jeffrey Michael ohdesigner

View GitHub Profile
/*
HTML for Social Links using Font Awesome
*/
<ul class="list-inline social">
<li>
<a href="https://www.facebook.com/" target="_blank"><i class="fa fa-facebook"> </i></a></li>
<li><a href="https://twitter.com/" target="_blank"><i class="fa fa-twitter"> </i></a></li>
<li><a rel="publisher" href="https://plus.google.com/" target="_blank"><i class="fa fa-google-plus"> </i></a>
</li><li><a href="https://www.pinterest.com/" target="_blank"><i class="fa fa-pinterest"> </i></a></li>
/*
CSS for Social Links using Font Awesome
*/
.fa {
font-family: FontAwesome;
font-style: normal;
font-weight: normal;
line-height: 1;
}
remove_action( 'wp_head', 'feed_links' );
remove_action( 'wp_head', 'rsd_link');
remove_action( 'wp_head', 'print_emoji_detection_script', 7 );
remove_action( 'admin_print_scripts', 'print_emoji_detection_script' );
remove_action( 'wp_print_styles', 'print_emoji_styles' );
remove_action( 'admin_print_styles', 'print_emoji_styles' );
remove_action( 'wp_head', 'index_rel_link' );
remove_action( 'wp_head', 'parent_post_rel_link', 10, 0 );
remove_action( 'wp_head', 'start_post_rel_link', 10, 0 );
remove_action( 'wp_head', 'adjacent_posts_rel_link', 10, 0 );
remove_action( 'wp_head', 'wp_generator' );
remove_action( 'wp_head', 'rest_output_link_wp_head' );
<title>The page title with 55 characters or less</title>
<meta name="description" content="A catchy page description with 155 characters or less that matches your page content." />
<meta name="keywords" content="lower case matching keywords with less as more" />
@ohdesigner
ohdesigner / style.css
Created April 8, 2016 12:15
Styles for Simple Social Sharing Buttons for WordPress Genesis http://www.ohdesigner.com/wordpress-genesis-simple-social-sharing/
/** Styles for Simple Social Sharing Buttons for WordPress Genesis */
.btn-tweet {
background-color: #41b7d8;
border-color: #41b7d8;;
}
.btn-tweet:hover,
a .btn-tweet:hover {
background-color: #238caa;
border-color: #238caa;
/** Simple Social Sharing Buttons for WordPress Genesis */
function social_after_content() {
if ( 'post' == get_post_type() && is_single() ) {
echo'<div class="ss"><a class="btn btn-facebook" rel="nofollow" target="_blank" href="http://www.facebook.com/sharer.php?u=';
echo the_permalink();
echo'&t=';
echo the_title();
echo'">Facebook</a> ';
echo'<a target="_blank" class="btn btn-google" href="https://plus.google.com/share?url=';
echo the_permalink();
.about {
background-color: #e5e5e5;
border-bottom: 1px solid #eee;
padding: 30px;
padding: 3rem;
text-align: center;
}
.postauthor {
margin: 30px 0 50px;
margin: 3rem 0 5rem;
@ohdesigner
ohdesigner / functions.php
Created April 5, 2016 12:32
WordPress Genesis Add About the Author, Author Biography http://www.ohdesigner.com/add-about-the-author-wordpress-genesis/
function add_author_bio() {
if ( !is_singular( array( 'post', 'page' ) )) return;
{ ?>
<div class="postauthor">
<?php echo get_avatar( get_the_author_id() , 120 ); ?>
<h4>About the Author</h4>
<p><?php the_author_description(); ?></p>
</div>
<?php }
}
@ohdesigner
ohdesigner / functions1.php
Last active April 4, 2016 19:15
Author Bio on Posts and Pages - WordPress Genesis
function add_author_bio() {
if ( !is_singular( array( 'post', 'page' ) )) return;
{ ?>
<div class="postauthor">
<?php echo get_avatar( get_the_author_id() , 120 ); ?>
<h4>About Jeffrey Michael</h4>
<p><?php the_author_description(); ?></p>
</div>
<?php }
}