Chicks dig blokes with groovy login screens
Or how to customise your WordPress login page.
There are three main features you may want to customise on your WordPress login page, whether it's a finishing touch on a client site, a complete rebrand of WP or just cos you're bored.
- CSS colors, font size etc
- Logo
- Logo link
How to remove the favorite actions menu in WordPress admin
Open your functions.php and hook in filter onto favorite_actions and return an empty array.
- function remove_favorite_actions() {
- }
- add_filter( 'favorite_actions', 'remove_favorite_actions' );
Change “Howdy” text in WordPress admin
The "Howdy admin" text can some times come across a little unprofessional in some WordPress installs. Especially when you are taking the time to rebrand/customise it as a CMS solution. Edit your theme's functions.php and hook in.
- add_filter('admin_user_info_links','howdy_msg');
- function howdy_msg($links) {
- return $links;
- }
[Snippet] Formatting a currency string
The Shopp ecommerce plugin for WordPress has a little annoying "feature" that returns the product price as a string pre-formatted for your region and currency.
I needed to do some maths on the string value, so some hacking was required to remove all the non-alphanumeric-but-not-decimal-points.
Shopp Alternative Google Base Feed
So you're running a Shopp, you're going to need a Google Base Feed to stand a chance of attracting traffic.
I got upset at the amount of hacking required to make the Google Base feed (/shop/feed) work correctly.
Google constantly change the requirements for the products feed and it doesn't seem possible to nicely modify the built in RSS feed for Google.
Custom Shopp Gallery
Hot off the press, here is a reformatted Shopp gallery function to overcome the current gallery function.
Firstly the code gets a larger cover image, then checks to see if there are more images and loops over to create smaller, clickable thumbnails.
Combine with FancyBox (jQuery) or your other *box script
SEO Title Tags for Shopp
Shopp's default title tags are fine, but get down to some hard core SEO tuning, they simply don't cut it.
Here's some code I lifted and modified from the Shopp forums to make the title tags SEO friendly.
See http://forums.shopplugin.net/topic/customizing-catalog-page-titles-please-help for more info.
I heart MDB2
I recently started a project for a customer, if it's CubeCart, WordPress or BackPress based, its a fairly good bet I'll be using ADOdb - but not any more! I though I'd try PEAR's MDB2. Its just another database abstraction library, but takes a slightly different approach to live. I quite like it.
Minify CSS on the fly with nginx
Code minification rules, but it sucks. The process of removing all unnecessary characters from source code, without changing its functionality. Brilliant! It reduces the amount of data, at byte level that needs to be transferred, so your site loads faster. But its a pain for developers as it involves shoving code through a minimiser before uploading, an extra step increasing development time.
Decreases of upto 70% are easily achieved.
Well, as if you needed another reason to ditch Apache, here's another one. nginx allows us to minify on the fly. Here's how.
Floating center in CSS
Something that really annoys me is the inability to float items centrally in CSS.
Use the CSS element margin.
- margin:0 auto;
Done!



