22nd August 2009

WP – Enable read more links for pages

When listing pages using the_loop(), the latest version of WordPress (2.8.4) does not allow for a “Read more…” link to be appended to a list of pages using the_content() along with the <!–more–> quicktag.

Although it wasn’t immediately obvious to me, read more links can be enabled by over-riding the global $more variable and setting it to false, before looping through the result set, for example: Read More

Blogging PHP WordPress 2 Comments »

20th August 2009

WP – Add class name to first paragraph in blog post

When re-designing my blog I wanted to display the first paragraph of each blog post in bold text. A CSS3 selector could have been used, but wouldn’t work in older browsers such as IE6.

Instead I decided to write a very simple function to add a class name to the first paragraph by filtering the content, then setting the styles accordingly in my theme CSS file. Read More

Blogging CSS PHP WordPress 1 Comment »

20th August 2009

A Taste of Something Different…

It’s been a while since writing my last blog post back in June, but I’m pleased to be getting back into it again.

One of the main reasons for for the lack of updates is due to the stack of work I’ve been attempting to get through and my attempts at redesigning the layout of my blog.

I had a couple of different concepts for the redesign, but this is the design I eventually went with. Read More

Blogging CSS 3 Comments »

« Older Entries
Newer Entries »

Categories

Twitter

About Me

“I have a geek lifestyle, except geeks don’t have a life. Or style!”

Hi, my name is Steve and this is my blog. I am a web developer based in the United Kingdom. I like (X)HTML, CSS, Flash, ActionScript3, PHP, JavaScript, MySQL, [paste trendy words here] and Mapping APIs.