- nastavit ve většině případů trvalé odkazy na formát /%postname%/
- vyřešit 301 přesměrování jedné varianty na druhou
- nastavit preferovanou doménu ve webmaster tools
// ---- | |
// Sass (v3.3.8) | |
// Compass (v1.0.0.alpha.19) | |
// ---- | |
// When we give an element some ‘attention’. | |
@mixin attention() { | |
&:hover, | |
&:active, |
# compress your website (http://www.smashingmagazine.com/2014/06/25/how-to-speed-up-your-wordpress-website/) | |
AddOutputFilterByType DEFLATE text/plain | |
AddOutputFilterByType DEFLATE text/html | |
AddOutputFilterByType DEFLATE text/xml | |
AddOutputFilterByType DEFLATE text/css | |
AddOutputFilterByType DEFLATE application/xml | |
AddOutputFilterByType DEFLATE application/xhtml+xml | |
AddOutputFilterByType DEFLATE application/rss+xml | |
AddOutputFilterByType DEFLATE application/javascript | |
AddOutputFilterByType DEFLATE application/x-javascript |
# enable keep alive (http://www.smashingmagazine.com/2014/06/25/how-to-speed-up-your-wordpress-website/) | |
Header set Connection keep-alive |
0. RESOURCES | |
http://www.smashingmagazine.com/2014/06/25/how-to-speed-up-your-wordpress-website/ | |
1. IDENTIFY PLUGINS THAT ARE SLOWING YOU DOWN | |
https://wordpress.org/plugins/p3-profiler/ | |
2. COMPRESS YOUR WEBSITE | |
http://checkgzipcompression.com/ | |
https://gist.github.com/illycz/1b896273dfd4cf26d184 |
# CUSTOM / Disable rewrite for custom folder | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{REQUEST_URI} !^/blog | |
</IfModule> |
The simplest way to have PNG fallback for browsers without SVG support: | |
<img src="logo.svg" onerror="this.onerror=null;this.src='logo.png'"> |
http://www.studionaam.com/ | |
$elements = $('.image'); | |
$elements.each(function(i, e) { | |
$(window).scrollTop() + $(window).height() > $(this).offset().top + 100 ? $(this).addClass("inview") : $(this).removeClass("inview"); | |
}); | |
$(window).scroll(function () { | |
$elements = $('.image'); | |
$elements.each(function(i, e) { |
/** | |
* Remove content permissions metabox added by Members plugin. | |
*/ | |
function prefix_remove_members_metabox() { | |
remove_meta_box( 'content-permissions-meta-box', 'post', 'advanced' ); | |
remove_meta_box( 'content-permissions-meta-box', 'page', 'advanced' ); | |
} | |
add_action( 'add_meta_boxes' , 'prefix_remove_members_metabox', 9999 ); |
import c from "classnames" | |
import s from "./index" | |
export const padding = (...args) => { | |
const [[a, b, c, d], mq] = args | |
if (mq) { | |
return c( | |
s.padding(a + b + c + d, mq), | |
) |