Skip to content

Instantly share code, notes, and snippets.

View jessedmatlock's full-sized avatar
🏠
Working from home

Jesse Matlock jessedmatlock

🏠
Working from home
View GitHub Profile
ul.breadcrumbs li :after{
content:" ";
display:block;
width:1.45em;
height:1.45em;
border-top:1px solid rgba(0, 0, 0, 0.05);
border-right:1px solid rgba(0, 0, 0, 0.25);
-webkit-transform:rotate(45deg);
-moz-transform:rotate(45deg);
transform:rotate(45deg);
//
-> class.phpmailer.php
-> example.php
-> thank-you.php
/**
* jQuery alterClass plugin
*
* Remove element classes with wildcard matching. Optionally add classes:
* $( '#foo' ).alterClass( 'foo-* bar-*', 'foobar' )
*
* Copyright (c) 2011 Pete Boere (the-echoplex.net)
* Free under terms of the MIT license: http://www.opensource.org/licenses/mit-license.php
*
*/
@jessedmatlock
jessedmatlock / FirefoxResponsiveDesignCustomSizes
Last active August 29, 2015 14:03
Firefox Custom Reponsive Design View sizes
about:config
add a new String entry with the name:
devtools.responsiveUI.presets
And the value of (customize as you need):
[{
"name": "Small",
@jessedmatlock
jessedmatlock / states.xml
Created July 29, 2014 13:50
US States with Abbreviations in XML
<select>
<option value="AL">Alabama</option>
<option value="AK">Alaska</option>
<option value="AZ">Arizona</option>
<option value="AR">Arkansas</option>
<option value="CA">California</option>
<option value="CO">Colorado</option>
<option value="CT">Connecticut</option>
<option value="DE">Delaware</option>
<option value="DC">District Of Columbia</option>
@jessedmatlock
jessedmatlock / dabblet.css
Created June 5, 2012 20:18
My Dabblet's Title :D
/**
* My Dabblet's Title :D
*/
background: #eee;
/*
* From css-tricks.com
* http://css-tricks.com/snippets/css/media-queries-for-standard-devices/
*/
/* Smartphones (portrait and landscape) ----------- */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px) {
/* Styles */
@jessedmatlock
jessedmatlock / wp-query.php
Created March 12, 2021 02:34 — forked from hslaszlo/wp-query.php
Query to sort a list by meta key first (if it exists), and show remaining posts without meta key ordered by title.
<?php
$term = get_queried_object();
the_post();
$wp_query = new WP_Query( array(
'post_type' => 'resource',
'tax_query' => array(
array(
'taxonomy' => 'resource_types',
'field' => 'slug',
'terms' => $term->name,
@jessedmatlock
jessedmatlock / acf-tsf-integration.php
Created March 17, 2021 14:24 — forked from doubleedesign/acf-tsf-integration.php
Get meta descriptions in The SEO Framework from ACF flexible content fields
<?php
/**
* The SEO Framework + ACF flexible content integration
* TSF will look at the excerpt and then the content to generate the default meta description.
* If both of those are empty, this code looks for ACF flexible modules to get it from.
* // TODO: Make this work with archives as well as posts
* @param $description
* @param $args
*
* @return mixed|string
/*
* Filter the output of Yoast breadcrumbs so each item is an <li> with schema markup
* @param $link_output
* @param $link
* @return string
*/
function revive_update_yoast_breacrumbs( $link_output, $link ) {
$updated_output = '<li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">';
$updated_output .= '<a itemprop="item" href="' . $link['url'] . '" itemprop="url">' . $link['text'] . '</a>';