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
/* | |
Clear fix for column classes | |
---------------------------------------------------------------------------------------------------- */ | |
.clear-line:after { | |
content: "."; | |
display: block; | |
clear: both; | |
visibility: hidden; | |
line-height: 0; | |
height: 0; |
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
/* Column Classes | |
Link: http://twitter.github.io/bootstrap/assets/css/bootstrap-responsive.css | |
--------------------------------------------- */ | |
.five-sixths, | |
.four-sixths, | |
.one-fourth, | |
.one-half, | |
.one-sixth, | |
.one-third, |
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
<div class="video-code">ADD YOUR IFRAME</div> |
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 | |
/** | |
* 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 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 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 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 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 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 | |
//* Do NOT include the opening php tag shown above. Copy the code shown below. | |
//* Updated 5/26/2024 to reflect changes to the plugin | |
function rename_portfolio_custom_post_type_slug() { | |
// Get the post type object | |
$post_type_object = get_post_type_object( 'portfolio' ); | |
// Convert the post type object to an array to manipulate its arguments | |
$args = (array) $post_type_object; |
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' ), |
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
/* | |
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; | |
} |