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
$white: #ffffff; | |
$black: #000000; | |
$red50: #ffebee; | |
$red100: #ffcdd2; | |
$red200: #ef9a9a; | |
$red300: #e57373; | |
$red400: #ef5350; | |
$red500: #f44336; | |
$red600: #e53935; | |
$red700: #d32f2f; |
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
.gallery .item { | |
// Small screen is set to 2 column grid | |
@include media($small-screen) { | |
@include span-columns(2); | |
@include omega(1n); | |
} | |
// Medium screen is set to a 4 column grid | |
@include media($medium-screen) { | |
@include span-columns(2); | |
@include omega(2n); |
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 | |
//* Start the engine | |
include_once( get_template_directory() . '/lib/init.php' ); | |
//* Setup Theme | |
include_once( get_stylesheet_directory() . '/lib/theme-defaults.php' ); | |
//* add WooCommerce Support by SMB | |
add_theme_support( 'genesis-connect-woocommerce' ); |
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
/* | |
Based on code by Kevin Lamping | |
source: http://codepen.io/klamping/pen/waMOeX | |
*/ | |
@mixin flex-grid { | |
display: flex; | |
flex-wrap: wrap; | |
margin-left: -$gutter; | |
margin-top: -$gutter; |
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 | |
$get_featured_cats = array( | |
'taxonomy' => 'product_cat', | |
'orderby' => 'name', | |
'hide_empty' => '0', | |
'include' => $cat_array | |
); | |
$all_categories = get_categories( $get_featured_cats ); | |
$j = 1; |
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 | |
/** | |
* Rewrite WordPress URLs to match Blogger permalinks exactly. | |
* | |
* This script is intended for one time use only after importing Blogger | |
* content into WordPress and should be removed from the server immediately | |
* after the script has run one time. It shouldn't be needed again after the | |
* initial rewrite. | |
* | |
* @version 0.1.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
<?php | |
//* Add "See All Videos" Link to Featured Videos | |
add_action( 'wp_head', 'target_gs_ftd' ); | |
function target_gs_ftd() { | |
if ( is_active_widget( true, 'featured-content-3', 'featured-content', true ) ) { | |
add_filter( 'gsfc_after_loop', 'featured_content_3' ); | |
function featured_content_3( $instance ) { | |
if ( 3 != $instance['custom_field'] ) { |
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 | |
// Adds a [social-icons] shortcode to output Genesis Simple Share icons in posts | |
// https://wordpress.org/plugins/genesis-simple-share/ | |
// Add the code below to your active theme's functions.php file, | |
// or use in a site-specific plugin. | |
// The shortcode takes no attributes; change your icon settings via Genesis → Simple Share. | |
add_shortcode( 'social-icons', 'gss_shortcode' ); |
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 // <~ keep me in | |
add_action('genesis_entry_content','themeprefix_team_slider' ); | |
//Fields | |
//team_portfolio = Gallery Field | |
function themeprefix_team_slider() { | |
$images = get_field('team_portfolio');//add your correct filed name | |
if( $images ): ?> | |
<div class="team-items"> |
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 | |
add_filter( 'body_class', 'ck_custom_body_classes' ); | |
function ck_custom_body_classes( $classes ) { | |
//* Create an empty value (or add a default to be applied everywhere) | |
$classes[] = ""; | |
if ( is_front_page() ) { |