Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Link Titles - W3C & SEO


stubbsy

Recommended Posts

Posted

Hi there,

 

I've just been going through some of the static elements of my site and adding descriptive title tags to text links on my front page.

 

This is both recommened by w3c and also as an SEO enhancement. I wondered if anyone has had a go at incorporating this feature into OSC so that when creating a new category for example, one would be able to add the title text for the link which is created?

 

Any ideas, suggestions or comments appreciated.

 

Cheers

 

Dave

Posted

I have the title created using my product/category name in the title with my company name following. It is pretty easy to do.

Posted

Hi mpiscopo

 

Do you mean the page title? I think from what you said that is what you mean, but please correct me if i'm wrong. :)

 

I'm looking to add titles to my category link text to provide additional info on the link and also help with SEO by getting some additional relevant words on the page, for example, a typlical category link on my site would appear as:

<a href="http://www.dirtbikebitz.com/motocross-helmets-c-49.html" title="Large range of Motocross Helmets in stock including One Industries etc etc">Motocross Helmets</a>

 

I wondered if anyone else had tried anything like it or if a solution exists already?

 

Cheers

 

Dave

Posted

Edit your /includes/boxes/categories.php file

 

Change:

$categories_string .= '">';

 

To:

$categories_string .= '" title="';

$categories_string .= $categories['categories_name'];

$categories_string .= '">';

 

This will give you what you want - but display the category name in the mouseover. You can add a new field to your database and then pull that field instead of categories_name.

 

This should get you moving in the right direction.

  • 2 weeks later...
Posted

Hi Mark,

 

i have the title="" appearing now in my category links but the name of the category does not appear in between the ""

 

Any ideas what I've missed?

 

Thanks for your help

 

Dave

Posted

I managed to solve it, I replaced

$categories_string .= $categories['categories_name'];

 

with

 

$categories_string .= $tree[$counter]['name'];

 

and all is well :)

 

Thanks

 

Dave

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...