This file contains hidden or 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 | |
/** | |
* This file adds the Home Page to the Tidy Theme. | |
*/ | |
add_action( 'genesis_meta', 'tidy_home_genesis_meta' ); | |
/** | |
* Add widget support for homepage. If no widgets active, display the default loop. | |
* | |
*/ |
This file contains hidden or 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 Signature Link | |
function custom_content_after_post($content){ | |
if (is_singular( 'post' )) { | |
$content .= '<p>Load Your Content Here</p><img src="#" alt="Your Name" />'; | |
} | |
return $content; | |
} | |
add_filter( "the_content", "custom_content_after_post" ); |
This file contains hidden or 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
/* Wrapping div for .content and .sidebar-primary */ | |
.content-sidebar-sidebar .content-sidebar-wrap, | |
.sidebar-content-sidebar .content-sidebar-wrap, | |
.sidebar-sidebar-content .content-sidebar-wrap { | |
width: 920px; | |
} | |
.content-sidebar-sidebar .content-sidebar-wrap { | |
float: left; |
This file contains hidden or 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 simple social icons | |
---------------------------------------------------------------------------------------------------- */ | |
.simple-social-icons ul li.social-bloglovin a, | |
.simple-social-icons ul li.social-bloglovin a:hover { | |
background: #1c82e9 !important; | |
} | |
.simple-social-icons ul li.social-dribbble a, |
This file contains hidden or 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
// Display Featured Image Above the Title on Single Posts | |
add_action('genesis_before_entry', 'featured_post_image', 8); | |
function featured_post_image() { | |
if (!is_singular('post')) return; | |
the_post_thumbnail('post-image'); | |
} |
This file contains hidden or 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
//* Place all code in the Media Queries area | |
@media only screen and (max-width: 1280px) { | |
.header-image .site-title a { | |
background-size: contain !important; | |
height: 0; | |
min-height: 286px; | |
} | |
} |
This file contains hidden or 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
/* | |
Hide Previous/Next Arrows and Pager Link Buttons from Free Version of Soliloquy | |
---------------------------------------------------------------------------------------------------- */ | |
.soliloquy-container .soliloquy-prev, | |
.soliloquy-container .soliloquy-next, | |
.soliloquy-container .soliloquy-pager-link { | |
display: none !important; | |
} |
This file contains hidden or 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
//for XHTML themes | |
add_action( 'genesis_after_post_content', 'child_related_posts' ); | |
//for HTML5 themes | |
add_action( 'genesis_after_entry_content', 'child_related_posts' ); | |
/** | |
* Outputs related posts with thumbnail | |
* | |
* @author Nick the Geek | |
* @url http://designsbynickthegeek.com/tutorials/related-posts-genesis | |
* @global object $post |
This file contains hidden or 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
// Register Custom Post Type | |
function products_post_type() { | |
$labels = array( | |
'name' => _x( 'Products', 'Post Type General Name', 'text_domain' ), | |
'singular_name' => _x( 'Product', 'Post Type Singular Name', 'text_domain' ), | |
'menu_name' => __( 'Products', 'text_domain' ), | |
'name_admin_bar' => __( 'Product', 'text_domain' ), | |
'archives' => __( 'Item Archives', 'text_domain' ), | |
'attributes' => __( 'Item Attributes', 'text_domain' ), |
OlderNewer