Archive for the 'Better Site Design' Category

Highlighting External Links within WordPress

You may have seen this symbol  next to links on various pages of the Web. It denotes that the link (which is usually placed before the symbol) is an external link.

If you’ve ever wanted to differentiate internal links from external links on your blog, there is a fairly simple way of doing it, and all it requires is a few lines of text added to your stylesheet.

In this post, we’ll show you how to do it.

Why differentiate between internal and external links?

Today, most people scan, they don’t read the full text of a blog. By representing your external links visually, visitors can see - at a glance - that you’ve given them quick access to relevant and related content that is not solely on your site. This is significant because the easier you make it for your visitors; the more information you supply, the more likely they are to subscribe to your RSS feed, or return to your site next time around.

How to differentiate between internal and external links on your blog

You won’t need to change anything on your existing posts; you’ll just need to make a few small changes to your style sheet.

This change will automatically update every post you have ever written.

Step 1: Copy the ‘external’ Image File

You need to copy the image file, external.gif, to the images sub-folder within your current WordPress theme folder.

Step 2: Add ‘external’ Image to Links

To create links that appear within posts as:

Add the following to your style sheet:

a
{
  background: url(/category/better_site_design/images/external.gif) no-repeat right top;
  padding-right: 12px;
}
 

The right padding value of 12 pixels ensures that the image does not overlap the text of the link.

Step 3: Differentiate Between Relative and Absolute Links

A handy feature of CSS is that you can apply a style not only to a HTML tag, but optionally based on the contents of any of the HTML tag’s attributes.

For example, to apply the above style to only those link references which contain “http:”, you modify the style sheet entries as follows:

a[href^="http:"]
{
  background: url(/category/better_site_design/images/external.gif) no-repeat right top;
  padding-right: 12px;
}
 

But this is only useful, if links to other posts are relative and not absolute links. An example of a relative link is ‘<a href=”another-post”>…</a>‘; whereas, an absolute link is ‘<a href=”http://blog.example.com/another-post”>…</a>‘.

Step 4: Exclude Absolute Links to Your Blog or Web Site

Now WordPress always uses absolute links. So to ensure that any link to your own blog or Web site does not have the external image applied, you follow the above style with entries which undo this change. The entries are specific to domain name of the blog or Web site.

For BlogWell, all our links start with http://blog-well.com. You will need to replace “http://blog-well.com” in the entries below with the domain name of your blog or Web site:

a[href^="http:"]
{
  background: url(/category/better_site_design/images/external.gif) no-repeat right top;
  padding-right: 12px;
}
a[href^=http://blog-well.com]
{
  background: none;
  padding-right: 0px;
} 

Step 5: Add a Class to Exclude the ‘external’ Image

Sometimes you may want some links which go outside of your blog or Web site to not have the external image applied. You can do this on a case by case basis by using a link class of ‘noexternallink’. Within your post you would write the link as:

<a class='noexternallink' href='http://example.com'>Example</a>

And the style sheet would contain:

a[href^="http:"]
{
  background: url(/category/better_site_design/images/external.gif) no-repeat right top;
  padding-right: 12px;
}
a.noexternallink[href^="http:"],
a[href^=http://blog-well.com]
{
  background: none;
  padding-right: 0px;
}

Note than ‘a.noexternallink[href^="http:"]‘ and ‘a[href^="/index.html"]‘ are separated by a comma. This is very important, since it ensures that the background of none and right padding of 0 pixels are applied to both ‘a.noexternallink[href^="http:"]‘ and ‘a[href^="/index.html"]‘. If you forget the comma, then it will only be applied, should ‘a[href^="/index.html"]‘ follow a ‘a.noexternallink[href^="http:"]‘.

Step 6: Exclude ‘external’ Image from Header and Footer Items

Within BlogWell’s theme we did not want any links within the header or footer to use the external image. Our theme uses the DIV HTML tag to identify the header and footer, and use the ID values of ‘header’ and ‘footer’ for each respectively.

<div id='header'>
...
</div>
...
<div id='footer'>
...
</div>

Without having to change all the links within the header and footer to use the ‘noexternallink’ class for links, we can easily prevent any links within the header and footer DIVs by using the following:

a[href^="http:"]
{
  background: url(/category/better_site_design/images/external.gif) no-repeat right top;
  padding-right: 12px;
}
#header a[href^="http:"],
#footer a[href^="http:"],
a.noexternallink[href^="http:"],
a[href^=http://blog-well.com]
{
  background: none;
  padding-right: 0px;
}

Step 7: Exclude ‘external’ Image from Sidebar Items

If you didn’t want the external image to be applied to any links within any of the sidebars, you can do the following:

a[href^="http:"]
{
  background: url(/category/better_site_design/images/external.gif) no-repeat right top;
  padding-right: 12px;
}
#header a[href^="http:"],
#footer a[href^="http:"],
#sidebar a[href^="http:"],
a.noexternallink[href^="http:"],
a[href^=http://blog-well.com]
{
  background: none;
  padding-right: 0px;
}

Step 8: Include Both Normal and Secure HTTP Links

If you use Secure HTTP, then your links will start with “https:”. To handle either standard HTTP (http://) or Secure HTTP (https://), then the above style sheet entries would be:

a[href^="http:"], a[href^="https:"]
{
  background: url(/category/better_site_design/images/external.gif) no-repeat right top;
  padding-right: 12px;
}
#header a[href^="http:"], #header a[href^="https:"],
#footer a[href^="http:"], #footer a[href^="https:"],
#sidebar a[href^="http:"], #sidebar a[href^="https:"],
a.noexternallink[href^="http:"], a.noexternallink[href^="https:"]
a[href^="/index.html"], a[href^=https://blog-well.com]
{
  background: none;
  padding-right: 0px;
}

Step 9: Review Padding Styles for Existing Links in Your Theme

A word or caution, as now links within the blog or Web Site will have a right padding of 0 pixels. If your theme explicitly sets the right padding for some items, then you will need to mark these settings as important which will ensure that value is used instead of the new value of 0 which is set in the above style sheet entries.

For example, BlogWell’s menu in the header, uses links which have a right padding of 20 pixels. So after adding the above entries to our theme’s style sheet, our menu appeared as:

The style entry which sets the menu’s right padding is:

#topnav ul li a
{
  padding-right: 20px;
}

CSS allows style sheet attributes to be marked as important, which means they will not be overridden by other style sheet entries. We can use the “!important” tag to ensure that the right padding of 20 pixels is used rather than it be overridden by the 0 pixel padding of our external link entries.

#topnav ul li a
{
  padding-right: 20px !important;
}

Our menu is now restored to its correct state:

Step 10: Review

To highlight external links within your blog or Web site do the following:

1) Copy external.gif to the images sub-folder of your current WordPress’ theme folder.

2) Add the following lines to your style sheet:

a[href^="http:"], a[href^="https:"]
{
  background: url(/category/better_site_design/images/external.gif) no-repeat right top;
  padding-right: 12px;
}
#header a[href^="http:"], #header a[href^="https:"],
#footer a[href^="http:"], #footer a[href^="https:"],
#sidebar a[href^="http:"], #sidebar a[href^="https:"],
a.noexternallink[href^="http:"], a.noexternallink[href^="https:"]
a[href^="/index.html"], a[href^=https://blog-well.com]
{
  background: none;
  padding-right: 0px;
}

3) Review your style sheet to see if any entries explicitly set the right padding value, in which case you may need to mark them with the “!important” tag.

A Final Word on Browsers

Should the link wrap around to a new line, Mozilla Firefox will display the external image correctly, following the end of the link on the new line.

 

However, Microsoft Internet Explorer will display the external image incorrectly at the end of the first line without any margin so it overlaps the text.

 

Sphere: Related Content

17 Ways To Lose Money With Your Web Site

slots.jpg

Photo credit: Moaan

Stroke Executive Ego: Do not try to work out what your users want, it’s secondary, and too difficult to determine. Instead, make the boss happy first - after all, he signs the checks. He likes pumpkins? A pumpkin theme it is!

Do Not Create a Web Site Plan: It’s unnecessary; a waste of time and money for something no one refers to anyway. Honestly, Web sites aren’t meant to have a point – and – since when could Web sites make money anyway?

Disregard Landing Pages: “Landing page” is just another buzz term. Clearly, the most important thing is to drive people to your site, it doesn’t matter where they land; you just want them to land somewhere. If they can’t find what they want when they get there, it is not your problem – after all, you went to all that trouble creating the site for them in the first place.

Consistency Is Overrated: Be creative. Use different fonts and colors on every page – and while you’re at it - why not create a different logo for each page too; make it more interesting!

Do Not Worry About Your Copy: Writing well should be a minor concern – dno’t yuo nkow thta het odrre fo orwds si uinmprtoatn? If your visitors want to know about you and what you do, they will make the effort.

Do Not Include Testimonials: You don’t want someone else’s logo on your site - give me a break - a link to someone else? Ridiculous! So what if Forbes said your company is the best thing next to sliced bread? It’s old news.

Use Many Graphics: The more the merrier, in fact, the larger the better. If it takes longer for the page to load, that’s just bad luck - the pictures are worth it.

Use Industry Jargon: It shows you know what’s going on in your field; that you care about staying up-to-date with the terminology. Your visitors will respect that and learn.

Include Abstract Language In Your Tagline/Motto: If your visitor needs to spend some time considering what you do, and who you are, there is a greater chance that they’ll remember you for a longer period of time – it’s directly proportional.

Turn It Into A Game: Change the navigation scheme on each page to spice things up. Visitors like to have fun; it breaks up the dreariness of Web surfing.

Don’t Waste Money On Professional Images: Take or make your own. So, they’re not as great as the professionals; you never claimed to be professional in that area - do it. Better yet, if you come across a great image online – grab it quick. The odds that the person who owns it will turn up at your site are practically zero.

Link Thumbnail Images: One way to be super useful - if you sell products - is to open up a new window for your visitor. It’s expected. However, rather than create a different or larger image (and confuse everyone), use the same thumbnail image – voila!

Demand Registration: It is imperative you have visitor information on hand. Of course they have to fill out the same information when they buy your product - they know this - it’s not a problem. Make them register, login, and provide details when purchasing your product/service – it’s a verification process – completely acceptable.

Use Forms To Get Visitor Information: Put every question you can think of in your forms. No, 150 questions are not unreasonable. In fact, a useful one that is often overlooked is “Are you left or right handed?”

Spend Your Entire Budget On SEO: It’s about getting thousands of visitor’s right? It doesn’t really matter what they see when they get to your site – they’re there!

Count Hits: Seriously, it’s the most important thing. Knowing you had 500 visitors is more important than knowing why they came, and why they left. And hey, you can’t please everyone anyway.

Once you’ve created your site – LEAVE IT ALONE: Do not do anything else. There is really no need to waste your precious time monitoring to see what visitors are doing. You’ve done your bit, created the perfect online space for them, they should be grateful.

This post is inspired by a great giggle I got from visiting ScriptingSite and reading “ How to Design a Terrible Website” and the new book: Web Design for ROI: Turning browsers into buyers & Prospects into Leads.

Read the book if you want to increase ROI ( free chapter on forms available online), check out How to Design a Terrible Website for a smile.

Sphere: Related Content

Does your website make you money, or lose you customers?

Recently, American Express credit cards wrote to me, explaining I had been pre-selected to obtain one of their cards. All I had to do is go to their website and fill in the form.

Brilliant!

Quick detour:

My family is still new to the United States so our credit rating here is almost non existent. To fix this, we thought we should begin by applying for several cards, paying in time, and build the rating… Amex was on the list.

I spend 15 minutes gathering information, another 20 filling in forms on the site, and hit submit:

“Server down, try again later”

Really, really wanted to smack someone…

How hard is it for the programmers to build in a contingency for this? Not hard. Why don’t they do it?

Because the people that make decisions about changes to the site (marketers and CEO’s), are so busy working out how to get more people to the site, how to optimize their site, how to promote their product; they forget about making the site great for their visitors.

A couple of months ago, Eric Sink wrote about his experience with Citibank and described the dramas of dealing with large corporations in his post, Absurd Customer Relations post. I’m starting to wonder whether quality of service is directly proportional to size of the organization.

In the offline world, small businesses tend to have more expensive product, they have fewer items for customers to choose from, they don’t have the funds to spend on advertising, so what do they do? Focus on really great personalized service!

But - what about experiences in the online world?

The Stanford Guidelines for Web Credibility show that 75% of web users admit to making judgments about the credibility of an organization - based on the design of its web site.

I’m not going back to Amex, Mr. Sink has cancelled his Citibank card, and I’m fairly confident we’re not the only two people in the world to be frustrated with customer service and website design.

So, what then, are business owners – small and big – waiting for?

Do they think it will be easier to fix once they’ve lost all their happy customers - or is it they just don’t know what to do right now?

If you belong in the first group – good luck; if you’re part of the second, start reading.

Books:

Web Design for ROI: Lance Loveday and Sandra Niehaus

Lance and Sandra have over 20 years of online experience between them, and their new book Web Design for ROI shows you why it is so important to start treating your web site as a business. Expect to increase 10 – 50% of web sales by switching focus: make your site usable - good for your visitors - instead of worrying about traffic - good (you think) for you.

Business of Software: Eric Sink

Eric Sink led the team that developed the Spyglass browser, (now known as Internet Explorer). His book Business of Software is indispensable if you’re thinking of starting a development firm or joining a startup in a very early phase; the business principles can be applied across all fields.

Eyetracking Web Usability: Jackob Nielsen and Kara Pernice

Eyetracking Web Usability, (available December 2007) demonstrates what can be learned from tracking user’s eye paths – where users go on your site, how they react to design elements – and leaves you with practical and effective information about how best to design your site.

The Art of the Start: Guy Kawasaki

If you listen to only 10% of Guy’s advice then you’ll probably double your success. His book, The Art of the Start will give you the essential steps to launch great products, services, and companies as well as show you how to unleash entrepreneurial thinking at established companies, helping you stay ahead of the pack.

Sphere: Related Content

The Case Against Unix

One thing which will keep Unix desktops from the masses is the fact the Unix file systems are case sensitive.

Why would anyone need readme.htm, Readme.htm, README.htm, ReadMe.htm, ReAdMe.htm, readme.HTM etc to be unique files within the same folder?

And if a Web site is hosted on a UNIX box, you get a whole lot of contradictions.

For example, http://www.werelocate.com/index.html is valid, but http://www.werelocate.com/Index.html is not (capital I in Index), since the file “Index.html” does not exist, only index.html does.  Now http://www.werelocate.Com/index.html is valid, since domain names are not case sensitive thankfully (the C in com is a capital).  Good luck explaining the difference to grandpa!

Whether it was by design, intentionally or otherwise, thankfully good old DOS just didn’t care.  No matter which way you said readme.htm, it would match whatever casing was present.

I just got burnt by a Unix box hosting a web site which dynamically created script to load a javascript file.  The same files work on Windows Server, but failed on Unix.  All due to casing.  Arrrrrrr.

Casing should only be important in sentences!

Sphere: Related Content

Search Engine Friendly Design

More from Searchnomics 2007, Shashi Thakur, Member of Technical Staff, Google Inc., and Paul O’Brien, Marketing Director for Zvents discuss the things you should, and the things you should not worry about when it comes to search engine friendly design.

Stuff to worry about

  • Include unique, useful content, preferably HTML
  • Include relevant and organic links
  • Think accessibility – it needs to be easy to reach with a text based browser
  • Use alt tags
  • Take care with images, flash, frames, JavaScript
  • Think aesthetics
  • Make your pages “ bite size
  • Check page rendering in different browsers
  • Don’t include too many advertisements
  • Good Titles are extremely important
  • Pages need to be easily reachable
  • Don’t bury the good stuff deep within the sites

  

Stuff you shouldn’t worry about (stuff that does not affect ranking)

  • Type of server (Apache vs. IIS)
  • File types: HTML, PHP, ASP, CFM
  • AdWords and AdSense

  

Links: The Good and the Bad

  • Encourage related sites to link to you by writing unique content
  • Avoid reciprocal links for the sake of a link
  • Avoid any type of link that you have to pay for
  • Avoid link exchanges (you know the sites, you give me a link, I’ll give you one back)
  • Avoid bad neighborhoods, that is, the shady areas of the Web

  

Ugly Links vs. Pretty Links

Ugly links are long and keyword less

Good looking links are short and keyword rich

Both of these sites talk about Independence day, which do you think makes more sense to search?

http://free.ed.gov/subjects.cfm?subject_id=257

http://www.usa.gov/Topics/Independence_Day.shtml

Paul O’Brien suggests by tidying up your URL’s, you can increase your ranking in search results; he suggests getting to know Mod Rewrite.

Anchor text

When using anchor text (the text within your site that links to another page), make sure you use choose your words wisely.  Give some meaning to the words, so when search engine bots look at them, it makes some sense:

Awful Anchor Text:

Using the word “here” as the anchor text in this sentence:

“You can read more about Searchnomics 2007 here

Great Anchor Text

Using the words “Searchnomics 2007” as the anchor text in this sentence:

“Read more about Searchnomics 2007″

Related content on BlogWell that may interest you:

     See your site through different browsers

     Why does my site not appear in Google

     Tools for Search Engine Marketing

Sphere: Related Content

2007 Geek Olympics

Hat tip to Matt, who points us to Full Code Press, a 24 hour contest to build a Web site for non-profits; the idea is cool in itself, yet gets way cooler when you realize the organizing committee is comprised of Australians and New Zealanders.

The event will take place in Australia on August 18, 2007; entries close June 29.  For more information visit the Web Industry Professionals Association Incorporated (Australia) or Webstock (New Zealand).

Sphere: Related Content

Why does my site not appear in Google?

A common question, with a simple answer:

Google can only crawl and index Web sites that the Googlebot can see.

The very next question is: How do I know whether the Googlebot can see my site?

From Google’s Webmaster Guidelines*, pay particular attention to the first technical recommendation:

Use a text browser such as Lynx to examine your site, because most search engine spiders see your site much as Lynx would. If fancy features such as JavaScript, cookies, session IDs, frames, DHTML, or Flash keep you from seeing all of your site in a text browser, then search engine spiders may have trouble crawling your site.

Lynx is licensed as open source, which means that it is free.  You can either download Lynx v2.8.5, or if you don’t want the hassle of downloading and installing it, just use a Lynx viewer; you type in your URL and voila – it shows you what the Googlebot can see.

If you are a little more techie and want Lynx on your machine, Tech Republic have written a cheat sheet that includes 20 of the most useful Lynx keyboard shortcuts.

* Site owners: Don’t be put off by the title “Google Webmaster Guidelines” as they are not just for webmasters, they are for Web site owners too, and they are written in simple English.

If you have a site, whether you are in charge of it or contracting it out, you need to make sure it adheres to the basic guidelines; if it doesn’t, your site can be penalized by Google and the other search engines.  And, reading the guidelines is a lot simpler (and smarter) than trying to get your site back into Google once it has been penalized.

Related Stories:

Know what search engines hate and avoid the Google Death Penalty

What does the Googlebot see when it visits your site?

See your site through different browsers
 

Sphere: Related Content

Bloggers: Take Control of Your Traffic

If you want a successful blog, you need traffic. If you want traffic you need to understand how search engines relate to you as well as your competitors.

Although many of these sites require that you have your own URL, e.g. blogwell.com instead of blogwell.wordpress.com, all of them offer lots of other useful information. Best of all – they are free.

Read more »

Sphere: Related Content

How to have a Clean Result on Google

I was recently given the opportunity to speak with Adam Lasnik, Google’s Search Evangelist about search engine optimization, and it started me thinking about title elements and meta description tags; specifically, just how important is it to get the words right?

When you search on Google, the two most obvious things that come back are the title of a Web page, and a brief description of it. Most people will easily recognize a result from a search query.

Read more »

Sphere: Related Content

Harvey Norman: The Anatomy of a Messy Search Result

Harvey Norman, a household name in Australia, is a franchise that retails products for the home and office.  Its diverse product line and quality of merchandise allows you to completely furnish your house or office with one visit, should you want to, and, if you know it exists. 

By all appearances, Harvey Norman is a successful company; from a search point of view, not so much.  Let’s take a look at their site.

Read more »

Sphere: Related Content

Next Page »