Monday 29 March 2010

WordPress....WordPress.....WordPress!!

Ok I have neglected the blog for a while with 2 hand ins and all this wordpress building but I can now say I am liking wordpress and all it can do!

The first thing I had to do when it came to wordpress was to download the file package. Once I had done this I had to make a few minor alterations to the wp-config file to allow wordpress to link to the websites database. I also followed advice from the smashing wordpress book I had read and generated authentication keys to help keep it more secure from hackers. The dashboard was then set up and the link was made between the two.

The next job was to add the pages to the blog and activate my theme within wordpress. This was a nice and simple task and didn't take long at all :) To create a theme within wordpress I had to name a folder within the theme folder (in this case I chose homemadecafe) and then within that folder you have all the usual files of the website, index and pages, images, swf files, javascript, css etc.
As I had multiple layouts for the pages i had to add a piece of php code at the top of the site pages to allow a specific template link to the css of that page. This was then linked within the wordpress pages too.

I then set up permalinks so that the web-address was more relative to the user (for example homemadecafe.com/cafe-menu) and now when you visited the page address there were empty templates displayed.

Within the php site pages a wordpress loop was added where the editable text was to be displayed. Once this task had been completed any text written within wordpress would now be displayed within the page online.

The pages of the website that the client is able to update are:

-Cakes to Order
-Contact Homemade
-Find Homemade
-Friends of Homemade
-Homepage
-Party Bookings
-Sandwich King
-Wedding Catering

Pages that are listed that the client is unable to update are:

-Café Menu
-Homemade Gallery
-Homemade Suppliers

With the basic wordpress working site now complete I next wanted to look into plugins for the contact forms required within the site.

No comments: