Skip to content

Instantly share code, notes, and snippets.

@hectorlorenzo
hectorlorenzo / wordpress-gitignore
Last active August 29, 2015 14:13
.gitignore file for fresh Wordpress installations
# ------------------------------------------
# GITIGNORE FOR WORDPRESS
# Really simple .gitignore for new Wordpress intallations.
# User created plugins or themes have to be manually included in it.
# ------------------------------------------
# Ignore everything except the wp-content folder (because it contains the themes
# and plugins), and the gitignore file itself
/*
!.gitignore
@hectorlorenzo
hectorlorenzo / center_content
Created August 19, 2014 08:45
Centers content vertically and horizontally
<div style="display: table; width: 100%; height: 100%;">
<div style="display: table-cell; vertical-align: middle;">
<!-- Content -->
</div>
</div>