Hans Rasmussen

info@hansrasmussen.com, +46 (0)723 207008

Customizing WordPress WYSIWYG editor TinyMCE

Since WordPress 3.0 there is a function to apply editor styles to the default WYSIWYG editor TinyMCE. By using the function add_editor_style(); you can define the stylesheet where you have your editor styles defined. Typically you put the call in your theme’s functions.php file. Default the function looks in your themes root folder for the [...]

Remove automatic links by default when adding images to your pages and posts in WordPress

When you insert images from your gallery in WordPress you will notice that all your images are linked with the url to your original image upload. Notice also that WordPress suggests a link in the Link URL field. Under the field you will also have 3 buttons, “None”, “File URL” and “Post URL”. If you [...]

Windows Live Writer with WordPress

Windows Live Writer with WordPress

I use WordPress as a blogging tool. Instead of logging into the administration system I can easily create my blog entries in a desktop program and publish my entry if XML-RPC and Atom Publishing Protocol settings are enabled in your WordPress blog (Settings –> Writing) I use Windows Live Writer and my blog is in [...]

Disable Loopback when you experience HTTP 401.1 when accessing web site from localhost

I experienced something that made my whole day full of troubleshooting. On a Windows 2008 Server Microsoft Dynamics CRM 4.0 was installed. CRM web application was using port 80 and had no host headers defined. Great, I wanted another web application to be located on the same server and therefore we created a DNS entry [...]

Installing LAMP (easy way)

I previously wrote about how to install WordPress on Ubuntu with some information on how to setup Apache, mySQL, PHP. A faster way (if you do not care about selecting and configuring manually) sudo tasksel install lamp-server