Skip to content

Instantly share code, notes, and snippets.

@poolghost
poolghost / .gitignore
Created May 13, 2016 — forked from salcode/.gitignore
.gitignore file for WordPress - Bare Minimum Git
View .gitignore
# -----------------------------------------------------------------
# .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
@poolghost
poolghost / .gitconfig
Created Jun 8, 2018 — forked from TangChr/.gitconfig
Adding Visual Studio Code to .gitconfig
View .gitconfig
[core]
editor = "code --wait"
[diff]
tool = default-difftool
[difftool "default-difftool"]
cmd = "code --wait --diff $LOCAL $REMOTE"
[merge]
@poolghost
poolghost / Rename-class-names-in-Gutenberg-blocks.js
Created Sep 25, 2019
Rename class names in Gutenberg blocks
View Rename-class-names-in-Gutenberg-blocks.js
const renameCoreBlocksDefaultClassNames = (className, blockName) => {
if (blockName === 'core/quote') {
return 'post__quote';
}
if (blockName === 'core/image') {
return 'post__figure';
}
return className;