Skip to content

Instantly share code, notes, and snippets.


Nick Cernis nickcernis

  • Innsbruck, Austria
View GitHub Profile
nickcernis / functions.php
Last active Sep 12, 2018
Adds support for editor color palette for sites using the Genesis Framework.
View functions.php
// Do NOT include the opening php tag.
// Adds support for editor color palette.
add_theme_support( 'editor-color-palette', array(
'name' => __( 'Light gray', 'genesis-sample' ),
'slug' => 'light-gray',
'color' => '#f5f5f5',

Never touch your local /etc/hosts file in OS X again

To setup your computer to work with *.dev domains, e.g., and so on, without having to add to your hosts file each time.



View gist:9c8d96623f7645e75dac
* Change the post order for listings
* @author Carrie Dils
* @link
* @reference
View author-box.css
/* Author Box
------------------------------------------------------------ */
.author-box {
background-color: #f5f5f5;
border: 1px solid #ddd;
margin: 0 0 40px;
overflow: hidden;
padding: 10px;