learning, teaching and research (archive)

ideas, notes, jottings

learning, teaching and research (archive) header image 2

Modifying the Cutline 2.1 theme

March 10th, 2008 · No Comments · Wordpress

When installing this theme the About and Archive links in the header produced missing pages messages. To fix this I had to do the following.

Create a page each  for the about and archive sections. I gave theses the titles ‘About’ and ‘Archives’.

Set the post slug to ‘about’ and ‘archive’

In the Options section of the Dashboard change the permalink from default (which creates urls with post numbers) to ‘Date and name based’.

Copy the .htaccess code generated by this choice when the ‘Update permalink structure’ button is clicked directly into an open notepad++ window and save file as .htaccess. (Notepad++ must be used rather than Notepad or a normal text editor as the file must be saved without an End of File (EOF) code).

ftp in binary transfer mode the .htaccess file to the root of the WP folders on the server.

The reason for this palaver is that the default urls of posts and pages refer to the post or page numbers in the database by default, but the links to pages in the header assume urls will be post and page names (or more precisely, their ‘slugs’). The permalink structure can be changed in options but for some reason an .htaccess file is needed with appropriate code in it for browsers to understand these links and find and display the pages. On installing a WP theme there is not usually a .htaccess file so this has to be created and made writable.

Tags:

No Comments so far ↓

There are no comments yet...Kick things off by filling out the form below.

Leave a Comment