Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View belcherj's full-sized avatar

Jonathan Belcher belcherj

  • Curative
  • Richmond, VA
View GitHub Profile
/**
* Internal dependencies
*/
import './style.scss';
/**
* External dependencies
*/
import { __ } from '@wordpress/i18n';
import { registerBlockType } from '@wordpress/blocks';
@belcherj
belcherj / InnerBlocks Error
Created July 10, 2018 19:06
InnerBlocks Error
/**
* Internal dependencies
*/
import './style.scss';
/**
* External dependencies
*/
import { __ } from '@wordpress/i18n';
import { registerBlockType, createBlock } from '@wordpress/blocks';
<span class="wooicon">T</span> // The character you want to display. "T" is the Twitter bird icon.
.wooicon {
font-family: @wooicons; // Set the font-family using the LESS variable;
}
@belcherj
belcherj / gist:b2321fc330dc91d6901ee2beb660e5ec
Created February 22, 2018 20:13 — forked from Cobus/gist:9951121
FontAwesome Usage
<a class="icon" href="#" title="#">Something</a>
a.icon:before {
.iconbefore_FA; // This will insert all the necessary default properties from the LESS mixin
content: "\f0a1"; // Set icon value. Find the value by inspecting elements on this page: http://fortawesome.github.io/Font-Awesome/icons/
}
@belcherj
belcherj / gist:27c2a1ef532ebf8e8a9f333c12d5bc97
Created January 3, 2018 21:12
Gutenberg Block Example, with everything working
/* global _, wp */
const { __ } = wp.i18n;
const {
registerBlockType,
Editable,
InspectorControls,
MediaUploadButton,
source: {
attr,
@belcherj
belcherj / gist:b9007c75af68ab8b3ccc06ab9a5f43b6
Created January 3, 2018 17:57
InspectorControls not appearing
/* global _, wp */
const { __ } = wp.i18n;
const {
registerBlockType,
Editable,
InspectorControls,
MediaUploadButton,
PanelBody,
ToggleControl,
### Keybase proof
I hereby claim:
* I am belcherj on github.
* I am belcherj (https://keybase.io/belcherj) on keybase.
* I have a public key whose fingerprint is 163E E7A5 A5E6 48D8 5841 4022 EF0C FA9D EB24 A791
To claim this, I am signing this object: