Practice layout with Susy - Logo, Nav, Gallery, Sidebar and Footer
A Pen by Irina Blumenfeld on CodePen.
# 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/ |
Practice layout with Susy - Logo, Nav, Gallery, Sidebar and Footer
A Pen by Irina Blumenfeld on CodePen.
<?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; |
<IfModule deflate_module> | |
<IfModule filter_module> | |
AddOutputFilterByType DEFLATE text/plain text/html | |
AddOutputFilterByType DEFLATE text/xml application/xml application/xhtml+xml application/xml-dtd | |
AddOutputFilterByType DEFLATE application/rdf+xml application/rss+xml application/atom+xml image/svg+xml | |
AddOutputFilterByType DEFLATE text/css text/javascript application/javascript application/x-javascript | |
AddOutputFilterByType DEFLATE font/otf font/opentype application/font-otf application/x-font-otf | |
AddOutputFilterByType DEFLATE font/ttf font/truetype application/font-ttf application/x-font-ttf | |
</IfModule> | |
</IfModule> |
/* http://nicolasgallagher.com/another-css-image-replacement-technique/ */ | |
.ir { | |
font: 0/0 a; | |
text-shadow: none; | |
color: transparent; | |
} |
function _remove_script_version( $src ){ | |
$parts = explode( '?ver', $src ); | |
return $parts[0]; | |
} | |
add_filter( 'script_loader_src', '_remove_script_version', 15, 1 ); | |
add_filter( 'style_loader_src', '_remove_script_version', 15, 1 ); |