♥stubbsy Posted November 20, 2006 Posted November 20, 2006 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
mpiscopo Posted November 20, 2006 Posted November 20, 2006 I have the title created using my product/category name in the title with my company name following. It is pretty easy to do.
♥stubbsy Posted November 20, 2006 Author Posted November 20, 2006 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
mpiscopo Posted November 21, 2006 Posted November 21, 2006 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.
♥stubbsy Posted November 22, 2006 Author Posted November 22, 2006 Hi Mark, thanks for the pointer, much apreciated :) Dave
♥stubbsy Posted December 2, 2006 Author Posted December 2, 2006 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
♥stubbsy Posted December 2, 2006 Author Posted December 2, 2006 I managed to solve it, I replaced $categories_string .= $categories['categories_name']; with $categories_string .= $tree[$counter]['name']; and all is well :) Thanks Dave
Recommended Posts
Archived
This topic is now archived and is closed to further replies.