Skip to content

Instantly share code, notes, and snippets.

View fuyuko's full-sized avatar

fuyuko

View GitHub Profile
@fuyuko
fuyuko / example.scss
Created July 13, 2015 17:19
SCSS Examples
/*-----------------------------------------------
Body - All
-----------------------------------------------*/
/*headings*/
@for $i from 1 through 6 {
h#{$i}{
font-family: Bitter, Arial, sans-serif;
color: rgb(107,57,8);
@fuyuko
fuyuko / functions.php
Last active July 21, 2023 13:06
Cheatsheet - WooCommerce Customization in functions.php
//Add a stylesheet after default style.css
wp_enqueue_style( 'my-css', get_template_directory_uri() . 'my-css.css', array('themename-style'));
//WooCommerce - Sort products by SKU
add_filter('woocommerce_get_catalog_ordering_args', 'custom_woocommerce_catalog_orderby');
function custom_woocommerce_catalog_orderby( $args ) {
$args['meta_key'] = '_sku';
$args['orderby'] = 'meta_value';
$args['order'] = 'asc';
return $args;