Custom TinyMCE Editor Formatting


Sometimes when writing a block of text using the WordPress editor, you need it to look a certain way, we usually do this by adding styles to peices of text, but we don’t always want our clients to have to open up the text editor and do this manually. In this example we will create…

Changing your WordPress site language (locale) dynamically


There are some fantastic multilingual plugins for WordPress, and WPML is one of my favourites. However for one client project I needed something far more flexible, as this particular client needed to cater for several countries that each spoke several languages. In short the client needed to be able to have a multisite instance that…

Stop Clickjacking by preventing your WordPress site loading in a Frame

Clickjacking code snippet (Cropped)

Clickjacking is a potential security risk caused by someone loading your website in a frame on their domain, and hijacking interactions you make with that site. For example if your website requires a user to login, it could log the username and passwords of users targeted by the clickjacking attack. Fortunately preventing clickjacking in WordPress…

Custom conditional statements around your WordPress enqueued stylesheets

Add custom conditional statement code snippet screenshot

You may be aware that you can add conditional statements around your WordPress enqueued CSS styles (such as <!–[if gt IE 7]><link …/><![endif]–>) to load the script for certain versions of Internet Explorer. As handy as this is, it doesn’t cater for all situations. This tutorial will show you how you can expand WordPress to add any type…