WordPress Best Practise: Optional Styles

Yoast.com: WordPress Plugins and SEO

WordPress magician and SEO expert Joost de Valk writes that a WordPress plugin or theme should never have to output inline styles, especially not in the frontend.

As all good front end developers know, inline styles will prevent some doctypes from validating, and they are also a factor to slow down your page loads—now more than ever a critical factor in SEO as well as user experience, since Google added load time to its ranking algorithm.

Joost continues:

If your plugin outputs a piece of code that needs styling, add an ID to the output and output the style using a style tag in the . Next to that you should add an option to remove the style altogether, and tell users how to add the CSS to their own theme’s stylesheet.

I hope all front end developers (and plugin developers) are taking note…

Read more from Joost de Valk: Optional Styles

Tags: , , , ,


Fatal error: Call to undefined function do_sociable() in /home/sensitiv/public_html/wp/wp-content/themes/specialops/single-blog-post.php on line 54