Skip to content
View style.css
html {
font-size: 62.5%;
body {
font: 1.6em/1.4 'Roboto', sans-serif;
View functions.php
if ( !defined('SAVEQUERIES') && isset($_GET['debug']) && $_GET['debug'] == 'sql' )
define('SAVEQUERIES', true);
if ( !function_exists('dump') ) :
* dump()
* @param mixed $in
* @return mixed $in
View functions.php
/* add a a styleselect drop down menu on the second row of the buttons */
function wpb_mce_buttons_2($buttons) {
array_unshift($buttons, 'styleselect');
return $buttons;
add_filter('mce_buttons_2', 'wpb_mce_buttons_2');
View wp-admin bar CSS fix
@media (max-width: 600px) {
html #wpadminbar{top:-46px} /* wp admin bar fix, due to slide-push menu putting a relative position on the body element */
View wc-shop-loop-columns.php
add_filter( 'loop_shop_columns', 'wc_loop_shop_columns', 1, 10 );
* Return a new number of maximum columns for shop archives
* @param int Original value
* @return int New number of columns
function wc_loop_shop_columns( $number_columns ) {
View nav pipes
#site-navigation ul li:after {
content: '|';
color: #fff;
font-size: 10px;
line-height: 24px;
float: left;
#site-navigation ul li:last-child:after {
content: ' ';
View wordpress change category dropdown text
function ChangeSelectTitle($cat_args){
$cat_args['show_option_none'] = __('My Category');
return $cat_args;
add_filter('widget_categories_dropdown_args', 'ChangeSelectTitle');
View CSS
.thing {
float: left;
width: 50%;
margin: 10px 0;
box-sizing: border-box;
text-align: center;
background: #e0e0e0;
.thing--one {
View dynamic mobile menu
//function for showing/hiding mobile menu dynamically
function mobileMenuToggle(){
//get height of menu and auto-detect when it needs to switch to mobile version
var menuHeight = $('#site-navigation').height();
//menu pushed onto 2 lines, hide it and show mobile one
if((isMobile == false) && (menuHeight > 30)){ //EDIT THIS HEIGHT!
//get the current browser width, as once the browser is this width (or wider) again, normal menu will need to kick in.
View gist:4fc8e575d82529a19dab
-webkit-appearance: none;
border-radius: 0;
-webkit-border-radius: 0;
Something went wrong with that request. Please try again.