Allow PHP in WordPress default text widget

The default text widget in WordPress only supports HTML. You can extend the functionality of the text widget by making it possible to execute PHP. Put this code in the functions.php of the theme you are using:

Always backup your functions.php before changing it!

Remove WordPress version from header

It’s very easy to track the version of WordPress you are running on your site. Because it’s that easy, it can also mean a security leak. Especially if you don’t update WordPress frequently. There is an easy way to hide the version number. Just add this code to the functions.php of the theme you’re using. … Read more

Useful pieces of code

With plugins it’s very easy to expand the functionality of a WordPress website. On the frontend as well as the backend. Plugins can make your life as site owner a lot easier. Especially when your not very technical. Tens of thousands of plugins are waiting out there to be used. Code or plugin Although plugins … Read more

Remove query strings from CSS and Javascript

Theme and plugin developers often add a version number to the CSS and Javascript files. This way they force the browser to always load the most recent versions.¬†It also causes these files not to be cached, because of the query string added to the file name. So every file must be reloaded every time it … Read more