Skip to content

Instantly share code, notes, and snippets.

View tomfinitely's full-sized avatar

Tom Finley tomfinitely

View GitHub Profile
@cmacdonnacha
cmacdonnacha / color-palette.scss
Created April 6, 2016 13:05
Material Design Color Palette
$white: #ffffff;
$black: #000000;
$red50: #ffebee;
$red100: #ffcdd2;
$red200: #ef9a9a;
$red300: #e57373;
$red400: #ef5350;
$red500: #f44336;
$red600: #e53935;
$red700: #d32f2f;
@sheilab
sheilab / functioms.php
Last active April 11, 2017 20:23
Genesisis Workstation theme Functions.php file including UberMenu code on line 18
<?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' );
@alexgleason
alexgleason / neat-flex-grid.scss
Created February 1, 2016 04:35
Bourbon/Neat Flexbox Grid
/*
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;
@rajeebbanstola
rajeebbanstola / get-woocommerce-categories.php
Created December 28, 2015 11:15
Simple way to fetch WooCommerce Categories with Image and Description
<?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;
@ryandonsullivan
ryandonsullivan / fixlinks.php
Last active April 27, 2025 06:29
Fix Blogger post permalinks after import into WordPress
@wpsmith
wpsmith / gsfw-targeted-instance.php
Last active October 13, 2015 16:40 — forked from tomfinitely/gsfw-targeted-instance.php
Genesis Sandbox Featured Content Widget - Targeted Instance
<?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'] ) {
@nickcernis
nickcernis / functions.php
Last active September 6, 2020 06:34
Genesis Simple Share Shortcode
<?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' );
@neilgee
neilgee / slick-init-multiple-page-genesis.php
Last active April 25, 2019 23:50
Slick Carousel Enqueued and USed with ACF
<?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">
@cjkoepke
cjkoepke / functions.php
Last active August 29, 2015 14:26
Apply multiple custom classes to the body tag with the body_class filter.
<?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() ) {