The popular open-source contract for web designers and developers by Stuff & Nonsense
- Originally published: 23/12/2008
- Revised date: 15/12/2013
- Original post
/* http://nicolasgallagher.com/another-css-image-replacement-technique/ */ | |
.ir { | |
font: 0/0 a; | |
text-shadow: none; | |
color: transparent; | |
} |
# Thanks to: https://gist.github.com/jdbartlett/444295 | |
# Ignore everything in the root except the "wp-content" directory. | |
/* | |
!.gitignore | |
!wp-content/ | |
# Ignore everything in the "wp-content" directory, except the "plugins" and "themes" directories. | |
wp-content/* | |
!wp-content/plugins/ |
<?php | |
/* | |
* Remove Original Uploaded images | |
* retain large size image | |
*/ | |
add_filter('wp_generate_attachment_metadata','phpbits_replace_uploaded_image'); | |
function phpbits_replace_uploaded_image($image_data) { | |
// if there is no large image : return | |
if (!isset($image_data['sizes']['large'])) return $image_data; |
MongoDB Crash Course 2022 < TODO: Add Video Link