My personal site is now powered by WordPress 2.7 and I waited only a week this time to upgrade. The siren song of all the amazing new features promised in 2.7 was too tantalizing to ignore. I am not going to go on and on about how different it is and what I like and don’t like because that’s been covered many times already in many other blogs.
I’m not that worried about my clients; whether or not they will get shock from the new admin (which is now all sleek,slinky and silvery ) because I booted them up to 2.5 with out a warning and they did not freak out then. Although because it is such a change I feel some sort of warning is in order.But I do like it.I think it is going to help my clients find things faster and I won’t have to send them direct links anymore-maybe.
Possibly the best new feature is the ability to make a post “sticky” from the also new Quick Edit option in Posts-Edit.Plain awesome.
I find the easiest way to upgrade is to turn off all my plugins and delete the wp-admin and wp-includes folders and all the wordpress root files except wp-config.php and index.php and of course .htaccess.Then upload the new folders and files and upgrade the database and then re activate all the plugins.I have only had problems uploading with ftp(timeouts with large files and images) but that has never killed any site.It’s just a pain in the butt.Thankfully once all my sites are using 2.7 when there are new versions I can click upgrade and be done with it.Although it must still have to be done with ftp at least I won’t have to deactivate,delete and re upload and reactivate.Doing that for more than 10 sites is not something I look forward to.
Category: Technical Blog
Search Engine Envy
I’m working on this one site and man is it requiring endless tweaks.The ecommerce solution (a paid for, non-open-source cart,gasp) reminds me of the gopher in Caddyshack. So I guess that makes me the psychotic,mentally disabled gardener. Anyway, each time I think the shop is finally good to go the error messages roll on in. The client asked someone to order from the site and wouldn’t you know it? They got an error message.If it were up to me I would attach 2 sticks of dynamite to this cart and blow it sky high.But they paid for it and so I must suffer.
The cart is not that feature-full and one thing that is really bare boned is the built in search engine.In the hopes of figuring something out I am constantly on other shopping sites trying to get a clue.I was just on Amazon searching for flare jeans for the hell of it.The engine kept returning results that were as far away from flared jeans as possible.Such as skintight shiny leggings. This made me feel a little bit better. If Amazon can’t have a perfect search engine then how can I? I’m just a psychotic, mentally disabled gardener after all.
Revised Fake Grid View
Updated April 19th 2009
If you are using the latest version of the WordPress Shopping Cart plugin, version 3.12.6, please read my latest post on the subject:
“Revised File for Fake Grid View”
The following post is helpful but the file to be downloaded was written for version 3.6.7.
I use wpsc when I mean WordPress Shopping Cart.
Here is a re write of an earlier post on “faking” Grid View(for wordpress shopping cart plugin).
My earlier post did not take into account, beyond styling the page with CSS, the functions in homepage_products_functions.php and how the output of this file varies from the real grid view product display.
So if you have purchased Grid View you should be able to use the Cart Icon button in the Post or Page editor to insert a wpsc category into a Post or Page and have it display just like Grid View,right? I thought so. But it doesn’t work that way.Inserting a single category into a page results in a page that looks a lot like grid view but acts quite differently.
Some key differences between using homepage_products and the grid view
Inserting a wpsc category into a Page(shortcode is for homepage_products) displays a thumbnail gallery of all products from one category and their product titles. If you use “Full” your page will not look like Grid View. If you don’t select Full you will get close to faking Grid View ( if you have the correct CSS to do so). But a Fake Grid View page has one little problem:the thumbnail image does not link to the single product display page(like in Grid View).Instead,it links to the thumbnail image.Which means a thumbnail image will pop up where a full size image should.
Continue reading Revised Fake Grid View
Making the change from HTML pages to WordPress
This article is for Web designers who want to switch a website that was built using dot html pages to WordPress. It is a relative snap to transfer any website, large or small, to WordPress.
The benefits of using WordPress instead of static pages are numerous. Concerns over losing ranking and generating 404’s are reasonable ones but they are concerns I am going to address in the following steps.
First Step:Get the latest version of WordPress &Install WordPress into it’s own directory.
Installing WordPress in it’s own directory allows you to work on the new design behind the scenes.If you don’t want to do that you can of course work on your own server and then upload the theme to your client’s WP installation. I like to work within the client environment so I can get to know any problems or quirks on the server before going live. Not all servers are created equal. Go to Settings>> Privacy and block search engines so that the work in progress does not get indexed if working on the client server. Or create a robots.txt file if one doesn’t already exist and type in
Disallow
/wordpress
Remember to remove this directive when going live.
Next Step:Making New Pages Out Of Old Pages.
An easy but time consuming step is copying and pasting the old html page content into the new WordPress pages and re instituting page order using the Page Order option
in the WordPress Page Editor. Number the old html pages and assign page order accordingly. If you have only 5 old pages to be carried over, you’ll be done very quickly. Designers handling the redesign of a much larger site with Parent and Child pages will have extra steps-especially if they need to build a drop down menu out of pages with child pages.Never fear:there are plugins that create dropdown menus for you. The one from We Eat Bricks looks the most promising
What the Blank is index.php?p=4? About-Us.htm looked so much better!
Using the permalink structure /%category%/% postname%
http://www.website.com/about-us.htm becomes http://www.website.com/about-us.
You choose this option in Settings>>Permalinks and find the Custom option. Paste what is in bold type into the field named Custom.
I heard recently that the fuss over pretty permalinks might have gotten a little overheated and that engines can and do index these kind of urls. But you will no doubt agree www.website.com/about-us looks a lot nicer than www.website.com/?p=4.
SEO Stuff
In my experience of redesigning websites, most had no SEO when I got my hands on them anyway but why continue on a bad path? As a web designer you might feel you should not have to worry about aspects that seem to fall more into the Marketing arena, right? Maybe. But many times the reason a client wants a redesign in the first place has nothing to do with how the site looks and more to do with such performance issues as: they aren’t getting as much traffic as they want or making many sales or landing as high in the SERPS as they would like. Fair or unfair they will probably blame you if their site doesn’t get climb higher in the SERPS after you deliver the new site. You should tell them that the more unique their content/product/service the more results they will see and that it will take time to see these results,too.Please do not make any unrealistic guarantees and make sure they are aware that the more often they update their sites the more they will be crawled.
There is one page that should not be carried over into the new design:the Splash or Intro Page.The Internet should be for offering information but because Splash Pages have very little information to offer, search engines tend to see this one page as the whole site and go away without indexing any links or real information about the website. I could go one step further and blame low performance on the Splash Page alone.The index page needs to be clean and uncluttered,true but don’t repeat the mistake of choosing style over substance.If you take a look at successful websites you will see that most put a lot of information on the index page.
All in One SEO
because WordPress doesn’t supply an option to create meta descriptions install the All in One SEO plugin.After you’ve activated this plugin each page will have a new All In One Seo option when you edit them.
Writing Meta Descriptions
If you are lucky the previous designer took care to create good meta descriptions for each page they made and then you can just paste this into the All In One SEO description field box.But if not you’re going to have to read the page content and pluck out of it a 160 character long description. 160 characters is believed to be the length after which search engines stop reading.
Using Keywords
It is argued over and over that Search Engines ignore keywords. If writing a Post instead of a Page you can use Tags and the All In One SEO plugin will use those tags as keywords.You shouldn’t worry overly about meta keywords.
Unique Page Titles
Page Titles need to be unique whether an it’s for an archive or a category or a Page page.
For Pages the title issue is taken care of when you publish the new page.Out of the box, most WordPress theme’s way of handling the title section needs a bit of help. So you should also install this code in the header.php file of the theme you are using:
[php]<title><?php
// Page or Single Post
if ( is_page() or is_single() ) {
the_title();
// Category Archive
} elseif ( is_category() ) {
printf( __(‘Archive for ‘%s’’), single_cat_title(”, false) );
// Tag Archive
} elseif ( function_exists(‘is_tag’) and function_exists(‘single_tag_title’) and is_tag() ) {
printf( __(‘Tag Archive for ‘%s’’), single_tag_title(”, false) );
// General Archive
} elseif ( is_archive() ) {
printf( __(‘%s Archive’), wp_title(”, false) );
// Search Results
} elseif ( is_search() ) {
printf( __(‘Search Results for ‘%s’’), get_query_var(‘s’) );
}
// Insert separator for the titles above
if ( !is_home() and !is_404() ) {
_e(‘ at ‘);
}
// Finally the blog name
bloginfo(‘name’);
?></title>[/php]
That will sort out Archives,Tags,Categories titles which you can also tell the engines not to index in Settings>> All In One SEO. Download the plain text file here:seotitles
I edited the file recently because of some confusion of mine over some very similar html characters:
‘ ’
« »
[html]‘ ’[/html]
[html]« »[/html]
The file is using lsquo and rsquo….
Going Live
You have all your pages set up and the design is finished and you are ready to go live, what next?
Read this article on installing WordPress in it’s own directory.If you’ve followed all the steps your new WordPress site should appear when you go to http://www.website.com/. If your old index.html page still pops up then you have a little more work to do. Paste this into main .htaccess:
DirectoryIndex index.php index.html
Placing index.php first takes care of that little problem.
Redirecting Traffic 301
Gather a list of all the old site’s links.
http://www.website.com/about-us.htm
http://www.website.com/contact.htm
http://www.website.com/projects.htm
Find the top level .htaccess in your website root and open it up for editing with a plain text editor like NotePad or Textwrangler.If you use a Mac you will have to rename the file to htaccess.txt so that you can save it to reupload it. Macs hide . files.
Redirect 301 /about-us.htm http://www.website.com/about-us
Redirect 301 /contact.htm http://www.website.com/contact
Redirect 301 /projects.htm http://www.website.com/projects
Repeat this until you have covered every last page from the old website’s linkage structure.
Save the file and upload it back to the top level directory.
Last is to turn off blocking search engines in Settings>>Privacy.
Important Last Steps You’ll Be Glad You Took:
Add www.website.com to Google and Create and Submit a Sitemap in Google Webmaster Tools. You’ll also want to make good use of Google Analytics.