Skip to content

Instantly share code, notes, and snippets.

View discoform's full-sized avatar

Matt discoform

View GitHub Profile
<div id="share-buttons">
<h5>Share this:</h5>
<!-- I got these buttons from simplesharebuttons.com -->
<!-- Buffer -->
<a href="https://bufferapp.com/add?url=<?php the_permalink(); ?>&amp;text=<?php the_title_attribute(); ?>" target="_blank" title="Buffer <?php the_title_attribute(); ?>">
<img src="https://simplesharebuttons.com/images/somacro/buffer.png" alt="Buffer" />
@discoform
discoform / functions.php
Created March 4, 2017 17:33 — forked from jameskoster/functions.php
WooCommerce - dequeue css (2.1+)
// Remove each style one by one
add_filter( 'woocommerce_enqueue_styles', 'jk_dequeue_styles' );
function jk_dequeue_styles( $enqueue_styles ) {
unset( $enqueue_styles['woocommerce-general'] ); // Remove the gloss
unset( $enqueue_styles['woocommerce-layout'] ); // Remove the layout
unset( $enqueue_styles['woocommerce-smallscreen'] ); // Remove the smallscreen optimisation
return $enqueue_styles;
}
// Or just remove them all in one line