Skip to content

Instantly share code, notes, and snippets.

/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
@jsongerber
jsongerber / functions.php
Last active December 15, 2021 15:12
Nomades WooCommerce code snippets
<?php
// Declare WooCommerce support
add_action( 'after_setup_theme', 'woocommerce_support' );
function woocommerce_support() {
add_theme_support( 'woocommerce' );
add_theme_support( 'wc-product-gallery-zoom' );
add_theme_support( 'wc-product-gallery-lightbox' );
add_theme_support( 'wc-product-gallery-slider' );
html,
body,
input,
select,
textarea,
button{
font-family: 'OpenSans', Helvetica, Arial, sans-serif;
font-size: 14px;
color: #222;
line-height: 1.65;
@jsongerber
jsongerber / BuxumColsHeight.js
Created October 30, 2017 10:31
Buxum Columns Height
/*
Same height for every cols
Use:
$('.wrapper').BuxumColsHeight(boxSelector, numberCols, subElements);
boxSelector: jQuery selector of the boxes
numberCols: Number of columns
subElements: array of selectors inside .box, if supplied, those elements height will be changed, null to change .box height
*/
@jsongerber
jsongerber / select.css
Last active November 3, 2017 14:43
Fully customizable html select using jQuery
.select-html{
/* Wrapper */
}
.select-html .select-label{
/* Label (value showed when closed) */
}
.select-html .options{
/* Options wrapper */
@jsongerber
jsongerber / .gitignore
Last active November 4, 2018 00:05
WordPress development on mac .gitignore
*.log
wp-config.php
wp-content/advanced-cache.php
wp-content/backup-db/
wp-content/backups/
wp-content/blogs.dir/
wp-content/cache/
wp-content/upgrade/
wp-content/uploads/
wp-content/wp-cache-config.php
@jsongerber
jsongerber / functions.php
Last active February 12, 2021 21:46
Useful Wordpress functions
<?php
// Dequeue functions.js -> Contains handlers for navigation and widget area.
function buxum_dequeue_script() {
wp_dequeue_script( 'twentysixteen-script' );
}
add_action( 'wp_print_scripts', 'buxum_dequeue_script', 100 );
// Hide admin bar
function my_function_admin_bar(){ return false; }