Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

@cdharrison cdharrison

🎯
Focusing
  • Augusta, GA
Block or report user

Report or block cdharrison

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@cdharrison
cdharrison / fooevents.php
Created May 14, 2018
This adds the ability for FooEvents data to be automatically detected and mapped properly when importing a CSV of Events-as-Products for WooCommerce.
View fooevents.php
<?php
/**
* Register FooEvents columns in the importer.
* @link: https://github.com/woocommerce/woocommerce/wiki/Product-CSV-Importer-&-Exporter#adding-custom-import-columns-developers
*
* @param array $options
* @return array $options
*/
function add_column_to_importer( $options ) {
@cdharrison
cdharrison / tiled-gallery-snippet.md
Last active Feb 19, 2016
I'm using [CMB2](https://github.com/WebDevStudios/CMB2) to enable me to add custom images to a post via a [File field type](https://github.com/WebDevStudios/CMB2/wiki/Field-Types#file). Rather than have a user create a gallery and place it within the body of content, I wanted to control where and how it displayed.
View tiled-gallery-snippet.md
View anker-links.md
@cdharrison
cdharrison / _post-status.scss
Last active Aug 3, 2019
WordPress Post Status
View _post-status.scss
.status-draft{
background: #FFFED8;
&:before{
content: 'DRAFT';
background: #7F7E46;
color: #fff;
display: block;
padding: 5px;
text-transform: uppercase;
}
@cdharrison
cdharrison / SassMeister-input.scss
Created Jan 9, 2014
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// Sass (v3.3.0.rc.2)
// Compass (v1.0.0.alpha.17)
// ----
$grey: #777;
$logosize: 31;
$blockpercent: 7%;
// Calculate the proper size of the blocks
View smile-alfred-tip.txt
Go to Alfred Preferences
Web Search
Add Custom Search
Search URL: http://smile.amazon.com/s/ref=nb_sb_noss_2?url=search-alias%3Daps&field-keywords={query}
Title: Smile
Keyword: smile
URL for sharing: alfred://customsearch/Smile/smile/utf8/noplus/http://smile.amazon.com/s/ref=nb_sb_noss_2?url=search-alias%3Daps&field-keywords={query} (Copy and paste into your browser and it should open Alfred to add this.)
@cdharrison
cdharrison / archives.php
Created Nov 21, 2013
A slightly fancier archives page for WordPress
View archives.php
<?php
/**
* @package WordPress
* @subpackage Tersus
Template Name: Archives
*/
?>
@cdharrison
cdharrison / archives.php
Created Nov 21, 2013
A page template for a slightly customized archives page for WordPress.
View archives.php
<?php
/**
* @package WordPress
* @subpackage effercio
*/
/*
Template Name: Archives
*/
get_header();
@cdharrison
cdharrison / archive.php
Created Nov 21, 2013
Sample archive.php file for WordPress
View archive.php
<?php
/**
* @package WordPress
* @subpackage effercio
*/
get_header();
?>
@cdharrison
cdharrison / css-preprocessors-reading.md
Last active Dec 25, 2015
Further Reading on CSS Preprocessors
View css-preprocessors-reading.md

Further Reading

You can’t perform that action at this time.