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
/** Load custom favicon to header */ | |
add_filter( 'genesis_pre_load_favicon', 'custom_favicon_filter' ); | |
function custom_favicon_filter( $favicon_url ) { | |
return 'http://www.mydomain.com/wp-content/images/favicon.ico'; | |
} |
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
.instagram-image { | |
background-color: #fff; | |
margin: 0 10px 10px 0px !important;; | |
padding: 10px !important; | |
-moz-box-shadow: 0 0 5px #999; | |
-webkit-box-shadow: 0 0 5px #999; | |
box-shadow: 0 0 5px #999; | |
text-align: center !important; | |
} |
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
.pins-feed-item { | |
padding: 7px !important; | |
background-color: #fff; | |
border: 1px #ddd !important; | |
margin: 0 0 12px 12px !important; | |
-moz-box-shadow: 0 0 5px #999; | |
-webkit-box-shadow: 0 0 5px #999; | |
box-shadow: 0 0 5px #999; | |
} |
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 Jetpack share buttons above post | |
remove_filter( 'the_content', 'sharing_display', 19 ); | |
remove_filter( 'the_excerpt', 'sharing_display', 19 ); | |
add_filter( 'the_content', 'sp_share_buttons_above_post', 19 ); | |
add_filter( 'the_excerpt', 'sp_share_buttons_above_post', 19 ); | |
function sp_share_buttons_above_post( $content = '' ) { | |
if ( function_exists( 'sharing_display' ) ) { | |
return sharing_display() . $content; |
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
<div class="one-fifth first"> | |
This is an example of a WordPress post, you could edit this to put information about yourself or your site so readers know where you are coming from. You can create as many posts as you like in order to share with your readers what exactly is on your mind. | |
</div> | |
<div class="one-fifth"> | |
This is an example of a WordPress post, you could edit this to put information about yourself or your site so readers know where you are coming from. You can create as many posts as you like in order to share with your readers what exactly is on your mind. | |
</div> | |
<div class="one-fifth"> | |
This is an example of a WordPress post, you could edit this to put information about yourself or your site so readers know where you are coming from. You can create as many posts as you like in order to share with your readers what exactly is on your mind | |
</div> | |
<div class="one-fifth"> |
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
remove_action( 'wp_head', 'wp_shortlink_wp_head', 10, 0 ); // removing the default shortlink | |
add_action( 'wp_head', 'bilty_shortlink_head'); // adding the new bit.ly shortlink | |
function bilty_shortlink_head() { | |
global $post; | |
$shortURL = get_post_meta($post->ID, 'bitlyURL', true); | |
if(!empty($shortURL)) { | |
echo '<link rel="shortlink" href="'.$shortURL.'" />'."\n"; | |
} else { | |
echo '<link rel="shortlink" href="'.get_bloginfo('url').'?p='.$post->ID.'" />'."\n"; |
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
<div style="text-align:center"> | |
adding on both end of the photo upload | |
</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
<?php | |
echo "Hello World!"; | |
?> |
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
// Make Font Awesome available | |
add_action( 'wp_enqueue_scripts', 'enqueue_font_awesome' ); | |
function enqueue_font_awesome() { | |
wp_enqueue_style( 'font-awesome', '//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css' ); | |
} |
OlderNewer