Poiesis Web Development

WordPressWe’ve recently upgraded our WordPress installation to WordPress 2.8 and realized just why I hate upgrading WordPress! On the 2.7.1 version the NEXT POSTS / PREVIOUS POSTS link at the bottom of the page worked perfectly, but after the upgrade it pointed erroneously to http://www.poiesis.co.za/index.php/Index.php/page/2/. I’m sure you can see the problem there: the double index.php in the URL! The solution to the problem is simple: open the formatting.php in wp-includes and add the following line at the beginning of the function before the if statements:

$url = str_replace('index.php/Index.php','index.php',$url);

Continue reading “Double index.php problem” »

Tags: ,

WordPressWe’ve received a few queries about the next/previous link in our WordPress themes from people wanting to know how to implement it in their themes. Well, the answer is simply insert the posts_nav_link() template tag into the php files of your theme that has the if ( have_posts() ) : while ( have_posts() ) loop. These files include index.php and archive.php. When you use the posts_nav_link() tag the next/previous links are generated automatically when required. However, the tag only works for pages of posts.

Continue reading “Next-Previous link not showing?” »

Tags: ,

May
27

CSS Stylesheets

A cascading style sheet or CSS allows you to separate the presentation and content of your web sites, with your content contained in your (X)HTML files and your presentation defined in a CSS. The CSS can be an internal stylesheet defined in the head element of your html file, an external file referenced in the head element, or an inline style defined in an html element.

The Internal Stylesheet

If you use a CSS style in the header element you need to enclose it in a style element, as in:

<head>
<title>Your Page Title<title>
<style type="text/css">
CSS Content
</style>
</head>

Continue reading “CSS Stylesheets” »

Tags: , , , , , ,

Now that our first WordPress Theme is done, we can start discussing designing your own site. When designing your site, the first thing you need to consider your layout and your background. With CSS these can be two separate things with your background being your page and your layout being your divs that you place and position over the page. Background properties can also be applied to your divs, but then they will be restricted to the divs that contain them. In this tutorial we’ll look at the background properties that can go in the body element of your stylesheet.css file.

Backgrounds Colors

Continue reading “CSS Background Properties” »

Tags: , , , , ,

Our First WordPress Theme

Simply Smart WordPress ThemeOur first WordPress theme, which we’re calling the Simply Smart, is coming along nicely. It’s a dark red, two-column theme with a fixed width of 1024 pixels designed for an automotive weblogs and is sponsored by custom-car.us. It uses a solid background, with an automotive image in the header (of a Smart Car Roadster, hence the “Smart” bit in the name), and a simple (hence the “Simple” bit in the name) two-column layout with a widget-ready side column on the right. It also supports an Author’s Archive page, which is ideal for blogs with multiple authors, like this blog (I guess we’ll be implementing it here too then).

Continue reading “Simply Smart” »

Tags: ,

There’s nothing like a recession to get you back on track … Many years ago I was tasked with creating and maintaining a website for our department at campus. The result was my first website (co-incidentally, it was a table-based layout, the year being 1999 and Y2K being all the rage). From there the idea of earning some income by doing some web development on the side emerged and poiesis.co.za was registered. Unfortunately, or fortunately, a lucrative job intervened and poiesis.co.za was put on the backburner. It became a small personal website for a while and then a personal collection of bookmarks. In the mean time I developed a couple of content websites as a hobby.

Continue reading “There’s nothing like a recession!” »

Tags: ,