Skip to content

Instantly share code, notes, and snippets.

Reid Burnett reidelliott

Block or report user

Report or block reidelliott

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View wp-rocket-settings.json
{"cache_mobile":1,"do_caching_mobile_files":1,"cache_ssl":1,"purge_cron_interval":10,"purge_cron_unit":"HOUR_IN_SECONDS","minify_html":1,"minify_google_fonts":1,"minify_css":1,"minify_concatenate_css":1,"exclude_css":[],"async_css":1,"critical_css":"","minify_js":1,"minify_concatenate_js":1,"exclude_js":[],"defer_all_js":1,"defer_all_js_safe":1,"lazyload":1,"lazyload_iframes":1,"lazyload_youtube":1,"emoji":1,"embeds":1,"sitemap_preload":1,"yoast_xml_sitemap":"1","sitemaps":[],"dns_prefetch":["\/\/fonts.googleapis.com","\/\/code.jquery.com\/"],"cache_reject_uri":["\/point-of-view\/"],"cache_reject_cookies":[],"cache_reject_ua":[],"cache_purge_pages":[],"cache_query_strings":[],"database_revisions":1,"database_auto_drafts":1,"database_trashed_posts":1,"database_spam_comments":1,"database_trashed_comments":1,"database_expired_transients":1,"database_all_transients":1,"database_optimize_tables":1,"schedule_automatic_cleanup":1,"automatic_cleanup_frequency":"weekly","cdn_cnames":[],"cdn_zone":[],"cdn_reject_files"
@reidelliott
reidelliott / phpversion.sh
Created May 25, 2018 — forked from vjandrea/phpversion.sh
Change php cli version in plesk
View phpversion.sh
#!/bin/sh
printf "Switching php to version 5.6 with symlinks.\n"
printf "Press any key to continue...\n"
read CONTINUE
printf "Creating backups..."
# Backup original binaries
View sage9-fix-local-acf-json.php
/**
* Fix location of ACF local JSON.
*
* Since Sage does some surgery on the WordPress template locations, ACF looks in
* the wrong location for the acf-json directory. We will fix this by manually
* hooking into that functionality and attempting to save in the right spot.
*
* @param string $path
* @return string
*/
View bootstrap-under-construction-boilerplate.html
<!doctype html>
<!-- Bootstrap Under Construction Boilerplate -->
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]-->
<!-- Consider adding a manifest.appcache: h5bp.com/d/Offline -->
<!--[if gt IE 8]><!-->
<html class="no-js" lang="en">
<!--<![endif]-->
View sage9-favicons.blade.php
<link rel="apple-touch-icon-precomposed" sizes="57x57" href="@asset('images/apple-touch-icon-57x57.png')" />
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="@asset('images/apple-touch-icon-114x114.png')" />
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="@asset('images/apple-touch-icon-72x72.png')" />
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="@asset('images/apple-touch-icon-144x144.png')" />
<link rel="apple-touch-icon-precomposed" sizes="60x60" href="@asset('images/apple-touch-icon-60x60.png')" />
<link rel="apple-touch-icon-precomposed" sizes="120x120" href="@asset('images/apple-touch-icon-120x120.png')" />
<link rel="apple-touch-icon-precomposed" sizes="76x76" href="@asset('images/apple-touch-icon-76x76.png')" />
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="@asset('images/apple-touch-icon-152x152.png')" />
<link rel="icon" type="image/png" href="@asset('images/favicon-196x196.png')" sizes="196x196" />
<link rel="icon" ty
View remove-archive-title.php
/**
* Removes the "Archive" prepending category and custom post type archives
* @author Reid Burnett
*/
add_filter( 'get_the_archive_title', function ($title) {
if ( is_category() ) {
$title = single_cat_title( '', false );
} elseif ( is_tag() ) {
$title = single_tag_title( '', false );
}
@reidelliott
reidelliott / Social Brand Colors
Last active Mar 22, 2018
A list of sass variables for social media brands
View Social Brand Colors
```
$twitter: #00aced;
$facebook: #3b5998;
$googleplus: #dd4b39;
$pinterest: #cb2027;
$linkedin: #007bb6;
$youtube: #b00;
$vimeo: #aad450;
$tumblr: #32506d;
@reidelliott
reidelliott / wp-social-share.php
Last active Dec 14, 2017
Function for social share links in WP using Font Awesome icons
View wp-social-share.php
/**
* Share Links
*/
function share_links() {
$home_url = esc_url( home_url( '/') );
$slug = basename( get_permalink() );
?>
<div class="share-links-container align-middle">
<ul class="share-links list-unstyled text-center text-sm-right mt-3 mb-3 mb-sm-0">
<li class="linkedin list-inline-item">
@reidelliott
reidelliott / gdlc-button-shortcode
Last active Oct 15, 2017
GDLC Button Shortcode
View gdlc-button-shortcode
[button href="#"]Serve our Church[/button]
@reidelliott
reidelliott / bs4-embed
Created Oct 11, 2017
Bootstrap 4 16x9 Embed
View bs4-embed
<div class="embed-responsive embed-responsive-16by9 my-4">
<iframe class="embed-responsive-item" src="https://www.youtube.com/embed/zpOULjyy-n8?rel=0" allowfullscreen></iframe>
</div>
You can’t perform that action at this time.