Blog Archives

Migrating Multisite to Single Site

I needed to migrate a site on a multisite installation to a single installation.  This article did the trick for the most part.   http://beacon.wharton.upenn.edu/404/2011/02/the-return-from-multisite/

Tagged with: ,
Posted in Coding

Bootstrap Tab linking

If you use Bootstrap (v3.x) you would see that clicking on a tab does add anything to the url so if you were to refresh, you wouldn’t go back to the tab you are on.  The post below says to

Tagged with: , ,
Posted in Coding

Javascript defaultValue

For some reason I have never needed to use the defautlValue property up until today.  I was pleased to find javascript can access the original input value so tracking changes in a form is a bit easier.  However, the defaultValue

Tagged with: ,
Posted in Coding

Careful with supporting all versions of IE 8

Problem Internet Explorer 8 is still mildly popular and so probably needs to be accommodated for on websites.  However, like different versions of Chrome and Firefox, IE8 also has different versions.  There are about 6 different versions of IE8 in

Tagged with: , ,
Posted in Coding

How does WordPress redirect mistyped URLs to the correct one?

Well, I’m not sure exactly because it is A LOT of code, but to make it stop, you can use the filter ‘redirect_canonical’ and return false.  like so: So say you have a post named “mission” at http://mydomain.com/mission, but for

Tagged with: ,
Posted in Coding

Google Analytics Measurement Protocol for Subscriptions

Send Analytics Data Directly From Your Server Google Analytics Measurement Protocol is available for Google’s Universal Analytics.  It was released in the first part of 2013 and is as of this writing still in public beta.  It allows developers to

Tagged with: , , , , ,
Posted in Coding

Font not showing properly in IE 8

Problem I’m using a google font that works fine in the menus, but seems to have a shadow of some sort in the content.  I set the font color to white and i still see some sort of outline.  I

Tagged with:
Posted in Coding

WordPress has its own magic quotes

Apparently WordPress has it’s own magic quotes.  It is not included everywhere so you need to check if the function which WordPress uses exists. More details in the stack overflow post. http://stackoverflow.com/questions/16748663/what-does-wordpress-do-if-magic-quotes-are-turned-off-at-server

Tagged with:
Posted in Coding

Easy WordPress Localization

If you want to localize a plugin or theme or even just change some wording around, or if you are starting from scratch the easiest thing to do is install the Codestyle Localization plugin. If starting from scratch, just  make

Tagged with: , ,
Posted in Coding, Off the Shelf, Tools

Environment Setup

This week I had to temporarily work on a new laptop so I had to set up my dev environment from scratch.  Of course, I wanted the same tools and apps I had on my permanent environment.  I find that

Posted in Coding, Off the Shelf, Random Thoughts, Tools