Skip to content

Instantly share code, notes, and snippets.

@mbeall
mbeall / googlefonts.sh
Last active August 29, 2015 14:00
Move all files from directory tree to single directory if match a pattern
#!/bin/bash
#
# Accepts two arguments
src=$(echo $1)
dest=$(echo $2)
if [ -z $1 ]
then
if [ -z $(ls | grep googlefontsdirectory) ]
@mbeall
mbeall / order.txt
Created March 24, 2014 05:56
CSS Comb order
position
top
right
bottom
left
z-index
display
float
width
min-width
@mbeall
mbeall / style.css
Last active August 29, 2015 13:57
Flint Child Theme Starter
/*
Theme Name: Child Theme of Flint
Theme URI:
Author:
Description:
Version:
Template: flint
License: GPLv3 or later
License URI: LICENSE.md
Tags:
@mbeall
mbeall / README.md
Created March 10, 2014 17:10
Transferring products from Sparks Store to Steel Marketplace

Transferring products from Sparks Store to Steel Marketplace

The easiest way to do this is to setup a temporary WordPress installation (remote, not local). This ensures all media is attached. If you are unable to setup a temporary remote WordPress installation, see the "Alternative Process" section.

Process Overview

  1. Export "All Content" using WordPress tool from main site.
  2. Open the downloaded xml file.
  3. Edit the xml file according the instructions in the next section, "Edit the XML."
  4. Make sure the Steel plugin is activated and the Marketplace module is activated on the temporary site.
<?php
/**
* Displays content for a team member profile
*
* @package Steel
* @module Teams
*
*/
?>
<?php
/**
* The template for displaying a list of profiles for a Team.
*
* @package Steel
* @module Teams
*
*/
get_header(); ?>
<?php
/**
* Displays a single profile
*
* @package Steel
* @module Teams
*
*/
get_header(); ?>
@mbeall
mbeall / slides.php
Last active December 31, 2015 11:29
slides.php - Custom Post Type method
<?php
/*
* Create a slideshow made up of images and video
* Uses Bootstrap Carousel plugin
*
* @package Steel
* @module Slides
*
*/
@mbeall
mbeall / customizer.js
Last active December 25, 2015 06:09
Customizer for Flint, with color options: Being postponed
/**
* Theme Customizer enhancements for a better user experience.
*
* Contains handlers to make Theme Customizer preview reload changes asynchronously.
*/
( function( $ ) {
// Site title and description.
wp.customize( 'blogname', function( value ) {
value.bind( function( to ) {

#Getting started ##Test Environment Setup

  • Theme Check
  • Debug Bar
  • Log Deprecated Notices
  • Debogger
  • Monster Widget