Website design refresh

David Nash wordpress Leave a Comment

Time flies when you’re having fun. And coding is a lot of fun, so time goes very fast. I’ve been meaning to add new clients to this site for a while, the big one being General Pants Group who I recently helped out by developing a WordPress theme. I was very excited to work for such a well known brand. I’ve also refreshed the design of this site a little. The full screen background image is now clouds, and I changed the colour scheme to match. I’ve included screenshots of some of the great projects I’ve developed on the front page, …

Disable WordPress Theme “Update Available” Notification

David Nash wordpress 21 Comments

I’ve been customising a theme that had a new version, getting the message “There is a new version of … available”. I didn’t want the end-user to update the theme, because I’d customised it so heavily. I know that any updates are going to need to be done by a WordPress theme developer. After a while of searching through code, looking for add_action and add_filter hooks, and even delving into the database, I realised I could just edit the theme’s style.css and remove the “Version:” line from the WordPress specific CSS header right at the top. And the notification (and …

WordPress upgrade “Briefly unavailable for scheduled maintenance. Check back in a minute.”

David Nash wordpress 2 Comments

I just updated my WordPress installation from 3.2 to 3.3. The upgrade was running but then the page directed to this message: Briefly unavailable for scheduled maintenance. Check back in a minute. The front page and wp-admin both showed this unstyled message. After a quick search I found that simply deleting the .maintenance file via FTP will remove this. Perhaps it’s a bug in this version, perhaps something went wrong. But after deleting that file everything seems to be working well. And I must say I like the design tweaks in WordPress 3.3.

WordPress Theme Development Quick Start

David Nash css, html, php, wordpress Leave a Comment

I’ve created plenty of WordPress themes based on designs from clients. This is the process I usually follow. 1. Create a static HTML and CSS template. I create index.html and style.css. 2. Install WordPress 3. In the WordPress folder wp-content/themes/ I create a folder with the name of my new theme. 4. Copy my static HTML to the new theme folder. 5. Modify style.css, add the WordPress stylesheet header: /* Theme Name: THEME_NAME Theme URI: YOUR_WEBSITE Description: THEME_DESC Version: 0.1 Author: YOUR_NAME */ 6. Rename index.html to index.php. Open index.php and replace the reference to style.css with < ?php bloginfo( ...

WordPress: Limit Archives to Single Category

David Nash mysql, php, wordpress 9 Comments

Late yesterday afternoon a client asked if I could look at a business’s WordPress installation. They had posts in several categories but only wanted to show the “Latest News” posts in the archives. WordPress is designed around blog posts, whereas I find that many business or company sites are designed around pages (eg About Us, Contact Us) – and don’t use WordPress’ powerful blogging tools on the front page. My site is an example – the content on the home page doesn’t change that much. This means that many of the solutions are also geared around blog-post design. While searching …

New WordPress theme for my site

David Nash css, wordpress 3 Comments

I’ve been meaning to update my website’s design and layout for a long time. My site is based on WordPress and the theme I’d been using previously was a little too sterile. I wanted something that was more of a portfolio site and yet could still accommodate a blog. After sporadic searches through the free WordPress themes on offer, I decided none of them quite did what I wanted, so I designed my own. I wanted to keep it minimal while making use of emerging web technologies like HTML5, CSS3; and I wanted the site to look just as good …

Duplicate WordPress site for local development and testing environment

David Nash mysql, wordpress 4 Comments

Update: This is not the best way to do this – use Search and Replace for WordPress databases instead. 1. Download all files from eg, upload to eg http://localhost/example/. 2. Export mysql database from 3. Create a local mysql database with the same user, password and database name. These can be found in wp-config.php 4. Import the database into your new local account 5. Log in to the database, and do: update wp_options set option_value=’http://localhost/example/’ where option_id=1 You’ll now be able to log in at http://localhost/example/wp-admin, using the same username and password as 5. In WordPress, click ‘Settings’ …

Quickly replace the header image in the default WordPress 2.7 Kubrick theme

David Nash General, wordpress 4 Comments

I was asked to do some quick mods to client’s WordPress blog. He wanted to replace the banner image. He’s using WordPress 2.7 and has the default Kubrick theme. This isn’t as easy as you would think as it’s generated by PHP so that the colours can be dynamically set. Here’s what I did: Download wp-content/themes/default/images/kubrickheader.jpg Modify it, save and upload as wp-content/themes/default/images/kubrickheader_NEW.jpg Edit wp-content/themes/default/header.php. On line 42 you should see <div id=”headerimg”> Modify this so it reads: <div id=”headerimg” style=”background: url(<?php bloginfo(‘stylesheet_directory’); ?>/images/kubrickheader_NEW.jpg) no-repeat -1px 0″> Upload header.php and it should now be using your new header. I used …