Skip to content

Instantly share code, notes, and snippets.

@jlavoie13
jlavoie13 / _flexslider.scss
Created January 15, 2016 22:38
Flexslider SCSS
/******************************************************************
Site Name:
Author:
Stylesheet: Flexslider Stylesheet
******************************************************************/
// Resets
.flex-container,
class scaffolding_walker_nav_menu extends Walker_Nav_Menu {
private $ulclasses = array();
private $liclasses = array();
// add classes to ul sub-menus
function start_lvl(&$output, $depth = 0, $args = Array()) {
// depth dependent classes
$indent = ( $depth > 0 ? str_repeat( "\t", $depth ) : '' ); // code indent
$display_depth = ( $depth + 1); // because it counts the first submenu as 0
@jlavoie13
jlavoie13 / _base.scss
Last active April 16, 2019 14:24
Gravity Forms SCSS
/******************************************************************
Site Name:
Author:
Stylesheet: Responsive Gravity Forms Styles
Usage: Uncheck box in Gravity Forms Settings to "Not" Output default CSS
******************************************************************/
@jlavoie13
jlavoie13 / _base.scss
Created November 23, 2015 19:19
WooCommerce 2.4.10 SCSS
/******************************************************************
Site Name:
Author:
Stylesheet: Responsive WooCommerce Styles
******************************************************************/
// Imports
@import "variables";
@jlavoie13
jlavoie13 / functions.php
Last active August 29, 2015 14:13
Remove Post Categories & Tags
add_action( 'init', 'post_cat_taxonomy_cleanup', 11 );
function post_cat_taxonomy_cleanup() {
global $wp_taxonomies;
$wp_taxonomies['category']->object_type = array_diff( $wp_taxonomies['category']->object_type, array( 'post' ) );
}
add_action( 'init', 'post_tag_taxonomy_cleanup', 11 );
function post_tag_taxonomy_cleanup() {
global $wp_taxonomies;
$wp_taxonomies['post_tag']->object_type = array_diff( $wp_taxonomies['post_tag']->object_type, array( 'post' ) );
@jlavoie13
jlavoie13 / woocommerce-layout.scss
Created January 9, 2015 14:24
WooCommerce Styles
/******************************************************************
Site Name:
Author:
Stylesheet: WooCommerce Layout
******************************************************************/
.woocommerce, .woocommerce-page {
@jlavoie13
jlavoie13 / gist:a53d802949c98727c85f
Last active April 3, 2024 02:27
Equal Height Divs
jQuery(window).load(function() {
// Equal Height Divs - http://css-tricks.com/equal-height-blocks-in-rows/
equalheight = function(container) {
var currentTallest = 0,
currentRowStart = 0,
rowDivs = [],
$el,
topPosition = 0;
@jlavoie13
jlavoie13 / tmpl-sitemap.php
Last active August 29, 2015 14:13
Site Map Template
<?php
/**
* Template Name: Site Map Page
*
* @package Scaffolding
* @since Scaffolding 1.1
*/
get_header();
@jlavoie13
jlavoie13 / social-media.php
Last active March 29, 2017 17:55
Social Media Links
<?php
// Social Media Links
if ( have_rows( 'social_media', 'options' ) ) : ?>
<ul class="list-style--social">
<?php while ( have_rows( 'social_media', 'options' ) ) : the_row(); ?>
<?php
// Variables
@jlavoie13
jlavoie13 / template-h1-tag.php
Last active December 16, 2015 18:07
Tuckaway H1
<?php
/**
* H1 Tag Template
*
* This is a tuckaway H1 tag for SEO purposes.
*/
// Set Variables
$h1_field = 'h1_tag'; // the field name defined in acf
$default_posttype = 'News'; // ex. Posts or News