Skip to content

Instantly share code, notes, and snippets.

View wpsitesimple's full-sized avatar

Bruce Munson wpsitesimple

  • Still Waters Media Group, LLC
  • Florida, USA
View GitHub Profile
@wpsitesimple
wpsitesimple / functions.php
Created June 1, 2016 23:55
Remove query strings from CSS and JS inclusions
//* Remove query strings from CSS and JS inclusions
function _remove_script_version($src) {
$parts = explode('?ver', $src);
return $parts[0];
}
add_filter('style_loader_src', '_remove_script_version', 15, 1);
add_filter('script_loader_src', '_remove_script_version', 15, 1);
@wpsitesimple
wpsitesimple / 0_reuse_code.js
Created June 29, 2014 17:44
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@wpsitesimple
wpsitesimple / taxonomy-wps_genre.php
Created March 23, 2012 18:43
Genre Taxonomy Page Template
<?php
/*
Template Name: Genre Taxonomy
*/
/**
* Modify Book Store navigation.
*
*/