Jake Paris

Writings

Breakpoint Helper with SASS/SCSS

When I’m building a new site, I usually spend a fair amount of time showing and hiding things at various breakpoints. This code defines the major breakpoints in use, then prints out a bunch of helper classes to make the showing/hiding easier. First create a sass map of all the breakpoints. $breakpoints: ( small:550px, medium:800px, […]

Using AJAX in WordPress

Most of the work of setting up an ajax action in the WordPress environment happens in php-land. The PHP File Register & enqueue your script. In this example, I’ll assume the script has already been registered. wp_enqueue_script( ‘myscript’ ); *I’ve had trouble when I’ve tried to enqueue the script at the wp_enqueue_scripts action and added […]

Javascript Media Query Hack

I’ve seen this somewhere before… HTML <span id=”smScreenIndicator”></span> CSS #smScreenIndicator { float: left; } @media (min-width: 400px) { /* whatever width suits the project */ #smScreenIndicator { float: none; } } JQuery function isMobile() { if ( $(‘#smScreenIndicator’).css(‘float’) == ‘left’ ) return true; else return false; }

Paul Irish and Me!

This is a photo of Paul Irish and I at An Event Apart 2014. This is just after he asked my advice on site performance. I told him, “Well, Paul, it’s complicated…” 

WordPress Beginner’s Guide

I made this for a client, but others who are just starting might find it useful. What is WordPress? WordPress is a popular content management system. It began as blog publishing software and is perhaps still best known as such.  It is used by over a million websites, including notables such as Yahoo, CNN, Flickr, […]