This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Replace the 'x' in WooCommerce cart.php with text because 'x' is not helpfull at all for screenreader users. | |
// https://gist.github.com/teledirigido/a859a1f0b954fc3f20cf44ef11d5718e/edit | |
function woocommerce_remove_item( $html, $cart_item_key ) { | |
$cart_item_key = $cart_item_key; | |
$html = sprintf( '<a href="%s" class="remove" title="%s"><span class="wsis-remove-item">%s</span></a>', | |
esc_url( wc_get_cart_remove_url( $cart_item_key ) ), | |
__( 'Remove', 'woocommerce' ), | |
__( 'Remove', 'woocommerce' )); | |
return $html; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
GRUNTFILE JS WORKING EXAMPLE | |
---------------------------- | |
- Babel | |
- Uglify | |
- Browser Sync | |
- Sass | |
- Watch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Webfontloader | |
------------- | |
Based on: https://github.com/typekit/webfontloader#typekit | |
DESCRIPTION | |
----------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
USAGE: | |
var svg = new animate_svg({ | |
id: '#svg-logo', | |
frames: 100 | |
}); | |
svg.init(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* | |
* NOTE: There're some css3 features using @include and I'm not including (dumb I know). | |
* You can find all the css3 properties in here: | |
* https://gist.github.com/teledirigido/e7d346cc05b4d95b8c97 | |
* | |
* This file has been created to work with the following script: | |
* https://gist.github.com/teledirigido/fec00d9e9ae3ac46b79c (cs_select.js) | |
* | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* | |
* This small scripts creates a post and attaches a file using Advanced custom field. | |
* | |
* Created by Miguel Garrido | |
* miguel.co.nz | [email protected] | |
* | |
* Notes: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* PARAMETERS | |
* ---------- | |
* | |
* | |
* Required (Array) | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
# Usage for your Javascript | |
$(document).ready(function(){ | |
var animate_squared = new animation({ | |
obj: '#your-tag .item', | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Find .htaccess and do chmod | |
sudo find / -type f -name '.htaccess' -exec chmod 604 {} \; | |
# Find wp-config.php and do chmod | |
sudo find / -type f -name 'wp-config.php' -exec chmod 644 {} \; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Open your bashprofile | |
alias openbash="subl ~/.bash_profile"; | |
# Thanks to [email protected] | |
alias showFiles="defaults write com.apple.finder AppleShowAllFiles YES; killall Finder /System/Library/CoreServices/Finder.app"; | |
alias hideFiles="defaults write com.apple.finder AppleShowAllFiles NO; killall Finder /System/Library/CoreServices/Finder.app"; | |
NewerOlder