Skip to content

Instantly share code, notes, and snippets.

@poolghost
poolghost / Rename-class-names-in-Gutenberg-blocks.js
Created September 25, 2019 13:48
Rename class names in Gutenberg blocks
const renameCoreBlocksDefaultClassNames = (className, blockName) => {
if (blockName === 'core/quote') {
return 'post__quote';
}
if (blockName === 'core/image') {
return 'post__figure';
}
return className;
@poolghost
poolghost / .gitconfig
Created June 8, 2018 14:15 — forked from TangChr/.gitconfig
Adding Visual Studio Code to .gitconfig
[core]
editor = "code --wait"
[diff]
tool = default-difftool
[difftool "default-difftool"]
cmd = "code --wait --diff $LOCAL $REMOTE"
[merge]
@poolghost
poolghost / .gitignore
Created May 13, 2016 18:48 — forked from salcode/.gitignore
.gitignore file for WordPress - Bare Minimum Git
# -----------------------------------------------------------------
# .gitignore for WordPress
# Bare Minimum Git
# http://ironco.de/bare-minimum-git/
# ver 20150227
#
# This file is tailored for a WordPress project
# using the default directory structure
#
# This file specifies intentionally untracked files to ignore