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 | |
/** | |
* Custom Landing Page for the Swank Child Theme | |
* | |
* This file adds the landing page template to the Swank Child Theme. | |
* | |
* Template Name: Landing | |
* | |
* @package Custom Landing Page for Swank | |
* @author Anita Carter |
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 Comments to Portfolio Custom Post Type (https://codex.wordpress.org/Function_Reference/add_post_type_support) | |
function add_comments_portfolio() { | |
add_post_type_support( 'portfolio', 'comments' ); | |
} | |
add_action( 'init', 'add_comments_portfolio', 11 ); |
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 support for additional color style options | |
add_theme_support( 'genesis-style-selector', array( | |
'maker-dark' => __( 'Maker Dark', 'maker' ), | |
'maker-medium' => __( 'Maker Medium', 'maker' ), | |
) ); | |
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 | |
//* Do NOT include the opening php tag shown above. Copy the code shown below. | |
/** | |
* Rename slug in Genesis Portfolio Plugin. | |
* | |
* @author Anita Carter | |
* @link https://cre8tivediva.com/rename-genesis-portfolio-slug | |
*/ | |
function rename_portfolio_custom_post_type_slug() { |
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
// 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' ), |
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
//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 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 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 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 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, |