Skip to content

Instantly share code, notes, and snippets.

View mairagall's full-sized avatar

Maira mairagall

  • Argentina
View GitHub Profile
(function() {
"use strict";
var root = this,
WASHAREBTN = function() {
this.buttons = [], this.isIos === !0 && this.cntLdd(window, this.crBtn)
};
WASHAREBTN.prototype.isIos = navigator.userAgent.match(/Android|iPhone/i) && !navigator.userAgent.match(/iPod|iPad/i) ? !0 : !1, WASHAREBTN.prototype.cntLdd = function(win, fn) {
var done = !1,
top = !0,
doc = win.document,
@mairagall
mairagall / WC Snippets
Last active December 5, 2021 21:07
WooCommerce Snippets
//Add a stylesheet after WC styles
add_action( 'wp_enqueue_scripts', 'maira_add_stylesheet' );
function maira_add_stylesheet() {
wp_register_style( 'woocommerce', get_stylesheet_directory_uri() . '/woocommerce/woocommerce.css' );
if ( class_exists( 'woocommerce' ) ) {
wp_enqueue_style( 'woocommerce' );
}
}
//Full Width Pages on WooCommerce - Genesis