Archive for the Category Featured Articles

 
 

Automatically published articles with WordPress

Here’s a really cool tip I only discovered recently (I think it has been around for a while though).

Anyway, there’s a function in WordPress that will allow you to have your blog automatically publish an article at a certain date and time. All you have to do is write the article as normal. Add a title, some text, tags and select the categories etc.

Next if you look to the right of your typing area (just above where the publish button is) you will see some text that says “Publish immediatley” with an edit link next to it.

Click the edit link and you will see some date and time boxes appear. Here you just have to add the date and time you want the article to be published to your site.

Next, you MUST hit the publish button, if you don’t the article wont appear when it’s supposed to!

Then you can just sit back and relax while the articles publish themselves!

This functionality is great if, say you have a blog or site that you don’t want to spend time every day posting on. Just spend a few hours writing up a tonne of articles and let WordPress publish them of you every day.

I plan on writing a load of articles at the beginning of each month for some of my sites, then I’ll let WordPress do it’s thing and I only have to work on the site for one day towards the end of each month!

You could also use this if you’re going on holiday or wont be near a computer for a while!

Bounce Rates

If you’ve looked at your stats you may have noticed something called bounce rates. Now, you probably never thought they were anything important. Well, they are.

A bounce is when a visitor comes to your site and leaves, either by closing their browser, clicking the back button or moving on to a new site without going to a second page on your site. This may not seem very important but, if you have a 70% bounce rate then that means 70% of your visitors are leaving your site without having a look at more than one page, which obviously isn’t very good.

Obviously there is very little chance of you getting a 0% bounce rate but there are a few things you can do to keep it down.

First of all, dont clutter your page with ads too much, if a person comes to your site and they cant clearly see the page title and content they were looking for or if the page is full of ads or unrelated text then they are pretty likely to bit back on their browser.

Make it easy for users to navigate around your site. Content rich sites are good, but dont make your navigation & logo so minimal that people can find them.

Make sure the content is the first part of your site that people see. This part is pretty similar to the first point but it is important! If people have to look for your content they will most probablt just leave.

Finally, and this could be just me but I hate sites that have big, flashing or noisy ads, especially ones that make noise or play videos automatically. If anything like that happens I’d click the back button as quick as I can and find what I was looking for on another site!

The last thing I wanted to mention is social bookmarking sites. If you are advertising your site through any sort of social bookmarking site such as Digg then you pretty much just have to accept that you will have a higher than average bounce rate. This is because the Digg user will probably have seen your article and thought “I’ll read that!” then read it and headed on over back to Digg for more articles. There’s not a lot you can do about it, but if you follow my tips above you might be able to get your overall bounce rate down.

Styling Forms with CSS

When you don’t quite get it, styling forms with CSS can be a real pain. But once you get your head around it you will see that there’s nothing really too difficult about it.

In this tutorial you will see how to create this contact form and style it so that it looks like this. In the future I am going to make some further guides on how to take the information entered and send it to yourself using PHP or ASP, but that’s for another day.

Right, so first of all we’re going to need our form. I am going to use this one. Your free to use this code if you don’t have a form of your own. Here’s the code for the form:

<form action=”” method=”post”>
        <label for="user_name">Your Name</label>
        <input type="text" name="user_name" class="inputbox"/>
        <label for="user_email">Your Email</label>
        <input type="text" name="user_email" class="inputbox"/>
        <label for="user_message">Your Message</label>
        <textarea name="user_message"></textarea>
        <input type="submit" value="submit" name="submit" class="submit"/>
</form>
 

Now as you can see the form is very simple and doesn’t look very good at all just yet. We’re going to fix that though.

First of all, we’re going to give the form a css class so that we can style it and all the elements within it. To do this we simply change:

<form action=”” method=”post”>
 

To:

<form action=”” method=”post" class="webform">
 

You will notice I added a class to our form rather than an id. This is simply because you might want to use more than one form on your page and using a class will keep the page valid whether you have one form or ten.

Simple, eh? Now lets start styling.

In our CSS document, we’re going to add a style for our form. So we add:

.webform{}
 

All of our styling will go between the { and the }. Now, I dont want my form to be too wide so I’ll add a width to my CSS.

.webform{
        width:400px;}
 

Next, we’ll add a font, a font colour and a background colour.

.webform{
        width:400px;
        font:11px Arial, Helvetica, sans-serif;
        color:#777;
        background-color:#fff;}
 

Now that the basic styling for our form is done, we can add some styling to the labels and inputs. First of all we will tackle the labels with the following CSS.

.webform label{
        display:block;
        width:300px;
        font-weight:bold;}
 

All the CSS above is pretty simple, we used the “display:block;” so that all the labels will start on a new line. This means we dont have to add any breaks (
tags) after every line. After we added the styling to our labels you can see that the form is starting to look a lot better. Now for the inputs.

.webform .inputbox{
        height:18px;
        width:250px;
        padding:4px 3px 2px 3px;
        margin:2px 0 10px 3px;
        border:1px solid #ccc;}
 

Again, I haven’t used anything to difficult to style the input boxes but they look a lot better! You might have noticed the submit button is a bit screwed up, dont worry, we’ll be fixing that later. But first we will make the textarea look better with the following CSS.

.webform textarea{
        height:80px;
        width:250px;
        padding:4px 3px 2px 3px;
        margin:2px 0 10px 3px;
        border:1px solid #ccc;}
 

So now the form is looking fine and dandy, apart from that pesky submit button. Lets add a class to it.

Change:

<input type="submit" value="submit" name="submit"/>
 

To:

<input type="submit" value="submit" name="submit" class="submit"/>
 

Now our submit button has a class of submit. Now for the CSS.

.submit{       
        margin:2px 0 0 3px;
        background-color:#eee;
        height:30px;
        width:80px;
        padding:0;
        border:1px solid #ccc;
        display:block;
        color:#666;}
 

Again, we have used the “display:block;” style to put the button on a new line without using a break. I have also added a background colour, padding, a border and margin. All of these are pretty simple CSS styles. If you need help with the different CSS styles check out the beginners guide to CSS tutorial.

As you can see, our form is looking very nice now and it has all been done with some simple CSS and minimal extra HTML. You can see the finished CSS form here.

Top WordPress plugins

Although wordpress is a fantastic blogging platform, the thing that makes it really amazing is the amount of extras or plugins that are available for it. You can make wordpress do pretty much anything you want using these plugins. This post contains a list of my

favourite wordpress plugins. If you think I’ve missed something that should be on this list, leave a comment or get it touch with me using the contact page.

Backup Wordpress

I put this one first because it seriously is the most inportant plugin of all if you’re going to put any sort of effort into your blog.

You could lose the content of your blog at any time, for a million different reasons. Anything from hacking to a host problem, or even simple human error can see you lose your months or years of hard work in seconds. Backup Wordpress is a handy (and free)

plugin that will automatically backup your database or your whole site at regular intervals. You can also do a manual backup anytime you fancy. It will even email you the backups!

Setting Backup Wordpress up is as simple as all wordpress plugins and requires minimal configuration. So dont risk losing your data, back it up!

BackUp WordPress

Comment Luv

I’ve mentioned this plugin on my blog before, but it’s worth mentioning again. Comment Luv encourages users to post on your blog by showing a link to their latest bog post underneath their comment. This plugin is great for increasing user interactivity with your site.

CommentLuv

Comment Rellish

This plugin is good for getting users that have commented on your blog to come back. The first time someone posts a comment on your forum, it sends them an email saying whatever you want. I reccommed saying thanks for their comment and asking them to

check back to the site every now and again.

The best thing about this plugin is that it will only send them an email the first time they comment, so they wont get angry about being bombarded with emails if they post on your blog a few times!

Comment Relish

Askimet

This plugin comes bundled with wordpress as default, make sure you have it activated! It checks every trackback, comment and pingback on your blog to make sure its all legit and there’s no spam. If you have a popular blog it can save you hours and hours of trawling through spam.

Askimet

All in one SEO

The All in one SEO plugn does exactly what it says. It provides pretty much everything you need to optimise your blog for search engines, and it’s even better when you combine it with other SEO plugins such as the sitemap generator below.

Some of its features include:

  • Automatically optimizes your titles for search engines
  • Generates META tags automatically
  • Avoids the typical duplicate content found on Wordpress blogs
  • For Wordpress 2.3 you don’t even have to look at the options, it works out-of-the-box. Just install.
  • You can override any title and set any META description and any META keywords you want.
  • You can fine-tune everything
  • Backward-Compatibility with many other plugins, like Auto Meta, Ultimate Tag Warrior and others

All in one SEO

Google XML Sitemaps Generator

This plugin will automatically generate an XML sitemap of your website. Google, MSN and Yahoo search engines all love XML sitemaps which means they can easily find and list every one of your pages in their search engines. The sitemap generator will even rebuild your sitemap when you create a new post and it will ping Google, MSN and Yahoo to tell them that the sitemap has been altered so they should re-spider it!

Google XML Sitemap Generator

CSS Fonts

One of the most important but overlooked aspects of a web design is the typography. The fonts you use and how you present those fonts can really make or break your website design. Thankfully you can use CSS to really make your fonts look great!

The first thing to learn when it comes to CSS fonts are the selectors and what each of them do. Here are the main font selectors and what they do:

font-family
This selects which font you want to use for your text. You can specify more than one font family, then if the browser cant find the font you use first it will move on to the next one and so on until it finds one it recognises.

font-size
As you might of guessed this defines the size of the font. You can define this as a pixel size (e.g. 12px), as a general size (e.g. large, small etc.).

font-style
The font style attribute defines extra styles to your font such as italic.

font-weight
The font weight sets the weight of the font. To define the weight of your font you can use words (such as normal, bold or bolder) or you can use values (e.g 100, 200, 300 etc.) the higher the values get the bolder the font will get.

These are the main font properties you will use. Now lets have a look at defining a font in CSS. We will add the font to an id called content. Basically this means that everything in the content div will be given the font style we define whilst everything outside the div will have a seperate style.

#content{
        font-family: Arial, Helvetica, sans-serif;
        font-size: 12px;
        font-weight: normal;
        font-style: normal;}
 

In the example above we first define the font family, you might notice I slected three fonts all seperated by a comma. This is (as described above) so the browser can find another font to use if it cant find arial. Next we define the font size which is pretty self explanitory. Then we define the font weight and font style. As the default for these two values is normal if you didn’t want to have italic or bold text then you wouldn’t have to define them so your css style would look like:

#content{
        font-family: Arial, Helvetica, sans-serif;
        font-size: 12px;}
 

Now we will move on to writing the above style in shorthand. Writing in shorthand has the same effects as writing it the long way, it just saves some space.

The way the style should be layed out is:

#content{
        font: font-style font-weight font-size font-family}
 

So an example of a font style would be:

#content{
        font: italic bold 12px Arial, Helvetica, sans-serif;}
 

And that’s all you need to know for the basics of text styling with CSS.