How to keep your WordPress Theme from being hacked

WordPress Theme Hack!

wp-hackKeeping you WordPress theme protected from being used by others is sometimes very important, especially if it is available on the web, or you intend to sell it.

Most of the times, themes are accompanied with additional information, which make them vulnerable from being hacked. A typical example of this kind of information is given below:

 

 

 

/*
Theme Name: Ony Happy Cloud
Theme URI: http://example.com/free-base-wordpress-theme
Version: 1.0.0
Author: Shiny
Author URI: http://www.example.com
*/

Basically this is everything all other users need, to hack your theme.

Q: So, how to prevent WordPress Theme Hacking?

(more…)

IE Specific Styling

ie vs firefox

The key to create IE specific styling is called conditional stylesheet. 

IE provides comment tags, supported all the way up to the current IE 8 to target specific versions, as well as greater-than/less-than stuff for targeting multiple versions at once.

Why use conditional stylesheets?

  • You got problems, they need fixin’
  • Keeps your code hack-free and valid
  • Keeps your main stylesheet clean
  • Perfectly acceptable technique, sanctioned by Microsoft

And remember, these conditional tags don’t have to be used only for CSS. You could load JavaScript, or even use them down in the content of your site to display special IE-specific messages. (more…)