Skip to content

Instantly share code, notes, and snippets.

View bu-s's full-sized avatar

Ben Usher Smith bu-s

View GitHub Profile
@bu-s
bu-s / Launch-website-checklist
Created June 19, 2014 13:40
Pre-launch website checklist to be used prior to setting a website live!
EDITORIAL
*************************************************
Spell check
Review for grammar and punctuation
Consistent terminology
Heading levels are appropriate
Style guide compliance
Ensure no test content on the site
SEO VISIBILITY
@bu-s
bu-s / Basic .htaccess for LAMP stack
Created April 21, 2014 14:01
Basic .htaccess LAMP stack
# Etags
# NOTE: You can add/or remove additional file types to suite you requirements.
<FilesMatch "\.(ico|icon|pdf|flv|jpg|jpeg|png|gif|js|css|swf)(\.gz)?$">
Header set Expires "Thu, 15 Apr 2016 20:00:00 GMT"
Header unset ETag
FileETag None
</FilesMatch>
# Gzip
<ifmodule mod_deflate.c>
/* The Grid ---------------------- */
.lt-ie9 .row { width: 940px; max-width: 100%; min-width: 768px; margin: 0 auto; }
.lt-ie9 .row .row { width: auto; max-width: none; min-width: 0; margin: 0 -15px; }
.lt-ie9 .row.large-collapse .column,
.lt-ie9 .row.large-collapse .columns { padding: 0; }
.lt-ie9 .row .row { width: auto; max-width: none; min-width: 0; margin: 0 -15px; }
.lt-ie9 .row .row.large-collapse { margin: 0; }
.lt-ie9 .column, .lt-ie9 .columns { float: left; min-height: 1px; padding: 0 15px; position: relative; }
.lt-ie9 .column.large-centered, .columns.large-centered { float: none; margin: 0 auto; }
@wpscholar
wpscholar / functions.php
Last active October 20, 2024 14:01
Enqueueing IE conditional stylesheets in WordPress the right way
<?php
add_action( 'wp_enqueue_scripts', 'enqueue_my_styles' );
/**
* Example callback function that demonstrates how to properly enqueue conditional stylesheets in WordPress for IE.
* IE10 and up does not support conditional comments in standards mode.
*
* @uses wp_style_add_data() WordPress function to add the conditional data.
* @link https://developer.wordpress.org/reference/functions/wp_style_add_data/