Remove admin color scheme picker from WordPress Profiles

June 12, 2015

If you want to clean up the WordPress user profile page in wp-admin by removing the color scheme picker here is a quick snippet that will do the task quickly for you. [php] remove_action( ‘admin_color_scheme_picker’, ‘admin_color_scheme_picker’ ); [/php]

Add HTML tags to the allowed tags list in WordPress

May 21, 2015

By default WordPress limits what HTML tags are allowed in post content. If tags that are not whitelisted are found in the content they will be stripped. It is possible add additional tags to the allowed list. View allowed tags To view the list of currently allowed tags you can use the following code: [php]

Script to convert MySQL collation from utf8mb4 to utf8

May 11, 2015

I ran into a strange situation with WordPress where the MySQL server did not support utf8mb4. I needed to quickly convert the tables back to utf8 to get the site running again. Though this script does work I highly recommend if you are running WordPress that you upgrade your MySQL server to support utf8mb4 for

Migrate from CodeHighlighter to SyntaxHighlighter without altering past posts

April 2, 2015

For many long years this site has used the CodeHighlighter plugin to markup code. CodeHighlighter’s last update was in 2012, that is eons in computer time. If you paid attention you will notice that CodeHighlighter is one of my plugins. Why am I switching away you ask? CodeHighlighter’s code base is old, real old. It

Remove query strings from static resources in WordPress

March 27, 2015

Using tools such as Pingdom and Google PageSpeed Insights I commonly see a message simliar to the following from WordPress powered sites: Remove query strings from static resources This week I have been on a performance optimization kick for a client and have been using this site as a testbed for optimizations. By default WordPress