Skip to content

Instantly share code, notes, and snippets.

View tyler-paulson's full-sized avatar

Tyler Paulson tyler-paulson

View GitHub Profile
@tyler-paulson
tyler-paulson / functions.php
Last active December 28, 2020 21:50
Retina-sized gravatar for header of Independent Publisher theme
<?php
function independent_publisher_retina_header_gravatar($args) {
if(isset($args['default-image'])) {
$args['default-image'] = str_replace('?s=100', '?s=200', $args['default-image']);
}
return $args;
}
add_filter('independent_publisher_custom_header_args', 'independent_publisher_retina_header_gravatar');
@tyler-paulson
tyler-paulson / books.php
Last active July 9, 2020 21:08
Books of the Bible as a PHP array
<?php
$books_of_the_bible = array(
'Genesis',
'Exodus',
'Leviticus',
'Numbers',
'Deuteronomy',
'Joshua',
'Judges',
@tyler-paulson
tyler-paulson / footer.php
Created June 16, 2017 17:15
Conditional PHP for copyright year range
@tyler-paulson
tyler-paulson / unset.scss
Last active December 9, 2015 19:11
Sass Mixin for Unset
// See https://developer.mozilla.org/en-US/docs/Web/CSS/unset
@mixin unset($property, $fallback: initial) {
#{$property}: #{$fallback};
#{$property}: unset;
}