Category Archives: Web Development
Setting caret (cursor) position in TinyMCE without using bookmarks
I recently had to automatically implement emoticons in my TinyMCE instance on a website. One of the requirements was to be able to type 🙂 and have it automatically change to the emoticon.This wasn’t a huge task but the issue that followed seem to present a challenge. By default the caret was moving back to […]
Git pull and push asks for username and password every time
I recently rebuilt my computer and cloned a git repository that I had been working on. Once I started working on the project again, I realised that every time I was executing a pull or push command in git bash it would ask me for my username and password whereas before it used to only […]
Can’t access specific website on Mac
I recently encountered a problem with a website I was working on. I stopped being able to access the site. All my browsers were not able to connect to the server. I was able to access all other sites that I needed. I contacted the host of the website and requested that they check my […]
Joomla 2.5: Displaying subcategory articles in Category Blog menu item
I have recently been working on a Joomla website and wanted to do the simple task of displaying my articles in a specific category on a page on under each other, just like a standard blog view. I chose to use the ‘Category Blog’ menu item which worked perfectly until I wanted to display subcategories […]
WordPress 3.4.1 upgrade stopped Media Library working
I recently upgraded one of my WordPress websites to version 3.4.1. As soon as I did this I started experiencing issues with my media library. Whenever I uploaded an image to the library I would be hit with a 404 error. I also got the same when I tried inserting an image into a post. […]
Mime Types (especially for Web Fonts)
I am regularly having to go in search of mime types for web fonts, so thought I would put them here so I will know exactly where to go for them. .eot application/octet-stream .woff application/x-font-woff .svg image/svg+xml .ttf application/octet-stream Feel free to add more mime types below that […]
Exclude Featured image from WordPress gallery
I needed to add the default wordpress gallery to page with a featured image but found that the featured image was also included in this gallery. The best way I found to exclude this is to add the code below to your site function exclude_thumbnail_from_gallery($null, $attr) { if (!$thumbnail_ID = get_post_thumbnail_id()) […]
Day 2 of Developing with EpiServer Relate 2 R2
Day 2 of Developing with EpiServer Relate 2 R2
WordPress site redirects to costabrava.bee.pl
I have just finished cleaning a wordpress website that had been hacked. The site would redirect to costabrava.bee.pl which is a malicious website. Due to this Google began showing a warning page whenever someone navigates to that site, informing them that the site is infected. I had to go through the site and locate all […]
HTML5 Boilerplate
http://html5boilerplate.com/ This template is a great starting point when creating a new website. The template contains jQuery, Modernizr, uses HTML5 tags and CSS3 also. The template comes with and index.html page which should be base of all your pages in the site, it also has a 404.html page which can easily be changed to fit […]