Skip to content

Instantly share code, notes, and snippets.

View theironsamurai's full-sized avatar

Nick Horton theironsamurai

View GitHub Profile
<?php
//* Do NOT include the opening php tag
//* Change default global labels of Download and Downloads to Product and Products
add_filter('edd_default_downloads_name', 'b3m_edd_product_labels');
function b3m_edd_product_labels( $labels ) {
$labels = array(
'singular' => __('Product', 'b3m'),
'plural' => __('Products', 'b3m')
/* Make sure your Menus are named Header Navigation, Primary Navigation and Secondary Navigation in Appearance > Menus */
(function( window, $, undefined ) {
'use strict';
$('.nav-primary').before('<button class="menu-toggle" role="button" aria-pressed="false"></button>'); // Add toggles to menus
$('nav .sub-menu').before('<button class="sub-menu-toggle" role="button" aria-pressed="false"></button>'); // Add toggles to sub menus
// Show/hide the navigation
$('.menu-toggle, .sub-menu-toggle').click(function() {
.gform_wrapper {
ul {
@extend .list-unstyled;
}
li {
@extend .form-group;
}
/* ------------------------------------
Gravity Forms
---------------------------------------*/
.gform_wrapper ul { padding-left: 0; list-style: none }
.gform_wrapper li { margin-bottom: 15px }
.gform_wrapper form { margin-bottom: 0 }