Post by bilbothecat » Tue Oct 27, 2009 5:10 pm

Hi OC community

I want to be able to extend the <title> attribute of my pages to show a full and unique description as this is #2 most important for Google. I have made several attempts but keep getting the syntax wrong and throwing undefined errors.

At the moment it simply calls

Code: Select all

<?php echo $title; ?>
which it takes from

Code: Select all

<?php echo $heading_title; ?>
My product description is made up from the model name, the product name and the manufacturer name and it is this I want called into the <title> attribute with an if/else statement (the else for non-product pages).

I know I could do this by simply including the other two in the product name field but as this data is already held it seems to defeat the dynamics to have to re-type it for each product description.

Any help will be gratefully received.

Bilbothecat

Newbie

Posts

Joined
Thu Oct 22, 2009 8:54 pm
Who is online

Users browsing this forum: Bing [Bot] and 36 guests