Hi David
Have you got any pre-written code for adding tags to pages, at the moment I am concentrating on product pages
{link saved}
So I would want to make the product name "Royal Canin Medium Adult 15 kg" the actual h1 and have this has high up in the code as possible.
I can't do 22,000 h1's manually so I guess being able to have the code as it and select the name automoatically would be great, ideally the code needs to be as clean as possible (at lest that is my understanding), by this I mean Royal Canin Medium Adult 15 kg withouht any other code around it
I'll probably need to do something similar with category pages too, so maybe where it says
"Product search results for category:Dry Dog Food: (showing 1 to 10 of 3216)" this becomes <h1>Dry Dog Food</h1>
Or we could leave the "Product search results for category:Dry Dog Food: (showing 1 to 10 of 3216)" and add the H1 above this.
Regards
Stuart
Thank you, have now implented this, well a slightly tweaked version but works how we want it now :-)
Hi Stuart,
Try something like this at the top of html/banner.php, or in fact anywhere in html/header.php
<?php
if (isset($q))
{
if (strpos(":",$q))
{
$title = $parts[1];
}
else
{
$title = $q;
}
print "<h1>".$title."</h1>";
}
?>
With that in place, you may want to make changes in html/product.php for example by removing line 11 where the product name is displayed to avoid it being repeated on the page...
Cheers,
David.
--
PriceTapestry.com