The archives

snippets

Smooth Scroll Offset Anchor Links with CSS

April 8, 2020

Don’t you hate it when you create an anchor link and it gets covered up by a fixed header? And isn’t it a bummer when the browser jumps to that link instantaneously all abrupt-like? Well…

Save notes to Evernote from Sublime Text

April 15, 2015

For a few years now I’ve used Snippets for keeping track of code snippets. It’s been a fine app, but recently has become slow, looks funny on Yosemite, and I get the feeling it’s become…

Remove previously tracked file from git repository

August 4, 2014

Here’s a simple git command that will remove a previously tracked file from a git repository: git rm –cached <file> The file will be removed from the head on the next commit. I run into…

Modify theme layout in Hybrid Core

July 28, 2014

Here’s how to modify the Theme Layouts extension in Hybrid Core: in functions.php: You can then hide sidebars and such like so: in a sidebar template:

Hide title attribute on hover, but don’t remove

March 17, 2014

A client of ours uses PrettyPhoto to show galleries of artwork and they recently requested that we change up the way in which the artwork meta information were displayed. This required that the data be…

@font-face not rendering in Chrome

March 7, 2014

Since launching the latest version of Spigot last week there has been an intermittent issue with our @font-face fonts not rendering (We serve web fonts from our servers). I initially shrugged it off as it…

Search and replace multiple files in Sublime Text

October 24, 2013

Command – Shift – F This is mainly a link for personal reference. I can’t seem to remember it. Source: http://docs.sublimetext.info/en/latest/search_and_replace/search_and_replace_files.html