Skip to content

Instantly share code, notes, and snippets.

View reidelliott's full-sized avatar

Reid Burnett reidelliott

View GitHub Profile
.gform_wrapper {
.gform_body {
ul.gform_fields {
@extend .row;
padding-left: 0 !important;
list-style-type: none;
li.gfield {
@extend .col-12;
@reidelliott
reidelliott / wp-rocket-settings.json
Created September 7, 2018 21:39
WP Rocket Import File
{"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 16:14 — forked from vjandrea/phpversion.sh
Change php cli version in plesk
#!/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
/**
* 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
*/
<!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]-->
@reidelliott
reidelliott / sage9-favicons.blade.php
Created April 18, 2018 16:50
Sage 9 Favicon Stack
<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
/**
* 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 March 22, 2018 21:22
A list of sass variables for social media brands
```
$twitter: #00aced;
$facebook: #3b5998;
$googleplus: #dd4b39;
$pinterest: #cb2027;
$linkedin: #007bb6;
$youtube: #b00;
$vimeo: #aad450;
$tumblr: #32506d;
@reidelliott
reidelliott / wp-social-share.php
Last active June 7, 2021 21:07
Function for social share links in WP using Font Awesome icons
/**
* 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 October 15, 2017 06:03
GDLC Button Shortcode
[button href="#"]Serve our Church[/button]