Skip to content

Instantly share code, notes, and snippets.

View JacobLett's full-sized avatar
🤠
hello!

Jake Lett JacobLett

🤠
hello!
View GitHub Profile
@JacobLett
JacobLett / gist:a9fb6d9605d668341170
Created May 18, 2015 19:56
add css version number to WordPress enqued style - Add to functions.php
// Adds version to style sheet
// Source - Jason https://wordpress.org/support/topic/add-version-number-to-stylecss-in-custom-theme
function my_wp_default_styles($styles)
{
//use release date for version
$styles->default_version = "20130711";
}
add_action("wp_default_styles", "my_wp_default_styles");
/*==================================================
= Bootstrap 3 Media Queries =
==================================================*/
/*========== Mobile First Method ==========*/
/* Custom, iPhone Retina */
@JacobLett
JacobLett / custom.css
Created August 11, 2015 00:59
Correct password box from overlapping password field - Crafted Bigcommerce theme
/* Moves the password notification box so it doesn't overlap the password input field*/
.crafted .PasswordRequirements{position:relative;left:175px;}
.crafted .PasswordRequirementsContent:before{border:10px solid #333;border-bottom-color:transparent;border-top-color:transparent;border-left:0;content:'';left:-10px;position:absolute;top:22px;}
@JacobLett
JacobLett / google-analytics.txt
Created August 11, 2015 18:59
Google spam filters regex for Google Analytics
// https://moz.com/blog/how-to-stop-spam-bots-from-ruining-your-analytics-referral-data
// http://www.ohow.co/what-is-referrer-spam-how-stop-it-guide/
4webmasters.org
trafficmonetize.org
semalt.semalt.com
webmonetizer.net
ranksonic.info
buttons-for-website.com
traffic2money.com
@JacobLett
JacobLett / gist:7ff2fdb29a9c4e645d78
Created August 11, 2015 19:06
Countries / Languages
Mandarin
Spanish
English
Hindi
Arabic
Portuguese
Bengali
Russian
Japanese
German
@JacobLett
JacobLett / gist:79ae2cf80ccf5ea08cee
Created August 20, 2015 18:57
yoast breadcrumbs - css
/* yoast breadcrumbs */
#breadcrumbs {font-size: 75%; color: #8e908f;margin:1em 0 2em 0;}
#breadcrumbs a {display: inline; border: none; padding: 0; text-transform: none;}
@JacobLett
JacobLett / gist:e7be42be4013bd0bed79
Created August 20, 2015 18:58
Yoast Breadcrumbs HTML - Add to template file
<!-- BEFORE -->
<?php if ( function_exists( 'yoast_breadcrumb' ) ) { yoast_breadcrumb(); } ?>
<!-- AFTER -->
<div id="breadcrumbs"><?php if ( function_exists( 'yoast_breadcrumb' ) ) { yoast_breadcrumb(); } ?></div>
@JacobLett
JacobLett / gist:aef48170089c59718a83
Created September 18, 2015 19:09
rock solid jquery tabs - hash active tab
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<title>jQuery Tabs Demo</title>
<style>
* {padding:0; margin:0;}
html {
@JacobLett
JacobLett / style.css
Last active September 19, 2015 22:01
Country show/hide CSS
<!-- shows united states and hides everywhere else -->
<a href="#" class="show-us">Show in United States</a>
<!-- shows in india and hides everywhere else -->
<a href="#" class="show-in">Show in India</a>
<!-- shows in china and hides everywhere else -->
<a href="#" class="show-cn">Show in China</a>
@JacobLett
JacobLett / gist:944d8a71c615ed2d9bc6
Last active September 19, 2015 22:01
Domain authority (Moz) of top content sites
domain, domain authority, spam score
https://www.youtube.com/, 100, 2
https://wordpress.com/, 98, 0
subdomain.wordpress.com/, 98, 0
http://www.slideshare.net/, 97, 0
https://www.etsy.com/, 94, 0
http://graphicriver.net/, 80, 3
https://creativemarket.com/, 62, 1
http://bootstrapcreative.com/, 27, 1
http://jacoblett.com/, 19, 0