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
/** | |
* Embed Gists with a URL | |
* | |
* Usage: | |
* Paste a gist link into a blog post or page and it will be embedded eg: | |
* https://gist.github.com/2926827 | |
* | |
* If a gist has multiple files you can select one using a url in the following format: | |
* https://gist.github.com/2926827?file=embed-gist.php | |
*/ |
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
<script type="text/javascript"> | |
(function(d){ | |
var f = d.getElementsByTagName('SCRIPT')[0], p = d.createElement('SCRIPT'); | |
p.type = 'text/javascript'; | |
p.setAttribute('data-pin-hover', true); | |
p.async = true; | |
p.src = '//assets.pinterest.com/js/pinit.js'; | |
f.parentNode.insertBefore(p, f); | |
}(document)); | |
</script> |
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
/* Custom Content Styling | |
--------------------------------------------- */ | |
.featured-content.featured-post-3 .featuredpost { | |
border: 1px solid #DDDDDD; | |
box-shadow: 0 0 10px #DDDDDD; | |
color: #54636E; | |
font-size: 16px; | |
-webkit-border-radius: 36px 12px; | |
-moz-border-radius: 36px / 12px; | |
border-radius: 36px / 12px; |
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
//* Reposition breadcrumbs from before .entry to inside .entry (above title) on single Posts and static Pages | |
add_action( 'genesis_before_content', 'sk_reposition_breadcrumbs' ); | |
function sk_reposition_breadcrumbs() { | |
if ( is_singular() ) { | |
remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' ); | |
add_action( 'genesis_entry_header', 'genesis_do_breadcrumbs', 9 ); | |
} |
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
/* Reposition breadcrumbs | |
--------------------------------------------- */ | |
.single-post .breadcrumb, .page .breadcrumb { | |
color: #666; | |
} | |
.single-post .breadcrumb a, .page .breadcrumb a { | |
color: #D7C603; | |
} |
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 the post meta function | |
remove_action( 'genesis_after_post_content', 'genesis_post_meta' ); |
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 entry meta in entry footer | |
add_action( 'genesis_before_entry', 'magazine_remove_entry_meta' ); | |
function magazine_remove_entry_meta() { | |
//* Remove if not single post | |
if ( ! is_single() ) { | |
remove_action( 'genesis_entry_footer', 'genesis_entry_footer_markup_open', 5 ); | |
remove_action( 'genesis_entry_footer', 'genesis_post_meta' ); | |
remove_action( 'genesis_entry_footer', 'genesis_entry_footer_markup_close', 15 ); | |
} |
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
//* Customize the post meta function | |
add_filter( 'genesis_post_meta', 'sp_post_meta_filter' ); | |
function sp_post_meta_filter($post_meta) { | |
if ( !is_page() ) { | |
$post_meta = '[post_categories before="Filed Under: "]'; | |
return $post_meta; | |
}} |
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 | |
/* | |
Template Name: Contact Us | |
*/ | |
//response generation function | |
$response = ""; | |
//function to generate response |
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 | |
// register the custom post type widget area | |
genesis_register_sidebar( array( | |
'id' => 'cpt-archive-sidebar', | |
'name' => __( 'Custom Post Type Sidebar' ), | |
'description' => __( 'Display this sidebar on your custom post type archive page.' ), | |
) ); | |
OlderNewer