Product Category | Product name | Modelnum | Some Keyword Dense Text
How would I do that. Also, is there a way to setup some custom title tags for the home page?
Thanks
----------------------------------------------------------------------------------------
eCommerce Development - eCommerce Web Design - Phoenix Web Design
The way I do it is to use the Meta Keywords field as an optional "page title" field, and override the default title if anything in Meta Keywords exists. It's an easy, one-line edit:
IN:
Code: Select all
/catalog/view/theme/YOURTHEME/template/common/header.tpl
Code: Select all
<?php echo $title; ?>
Code: Select all
<?php if ($keywords) { echo $keywords; } else { echo $title; } ?>
This looks great - but I'd rather be able to input the words for the title tag from a source other than the meta keywords field. I know that they say most of the search engines don't use them at all...but I'm hesitant to completely disregard them :S Is there a simple way to still get custom title tags, or should I just forget it and go with this solution?
Thank you,
Jared
You can EXTEND your title tags if you want, using the location field - that's what I do and it works really well.
http://forum.opencart.com/viewtopic.php?t=9640
http://scarletandjones.com/
http://sharpdressedman.co.uk/
http://coffincompany.co.uk/
http://horsesculptures.co.uk/
If I've helped you out, why not buy me a beer? http://craigmurray.me.uk
Code: Select all
<?php if ($keywords) { echo $keywords; } else { echo $title; } ?>
Code: Select all
<?php echo $keywords ? $keywords : $title; ?>
Yeah, I don't know why I put the longer version in there originally. Clarity, maybe? Anyway, good suggestion.JAY6390 wrote:Just to notecan be reduced toCode: Select all
<?php if ($keywords) { echo $keywords; } else { echo $title; } ?>
I know it's not much but for such a simple line I like it "clean"Code: Select all
<?php echo $keywords ? $keywords : $title; ?>
Give a man a fire and you make him warm for a day. Light a man on fire, and you make him warm for the rest of his life.
http://www.awesomedice.com
Just tried this method and its works great.Johnathan wrote:I originally posted this here, but just so the information is also in this thread:
The way I do it is to use the Meta Keywords field as an optional "page title" field, and override the default title if anything in Meta Keywords exists. It's an easy, one-line edit:
IN:REPLACE:Code: Select all
/catalog/view/theme/YOURTHEME/template/common/header.tpl
WITH:Code: Select all
<?php echo $title; ?>
Code: Select all
<?php if ($keywords) { echo $keywords; } else { echo $title; } ?>
Makes thins for me much easier
Thank for your contribution.
Rings | Sapphire Rings | Large Sapphire Ring - MySite Name
For this URL: http://www.mysite.com/rings/sapphire-ri ... phire-ring
Using the Category, Subcategory, Product Name
Any help will be much appreciated.
Professional SEO Consulting
http://www.shimonsandler.com
will this work ?
Code: Select all
<?php if ($manufacturer) { echo $$manufacturer; } else { echo $title; } ?>
This is how some muppets can just ruin your business.
With ideas like this....
Yeap! You can change the title tag changing this code..... bla bla bla
YOU! STUPID PHP GUYS!
I just got penalized by google doing what you said. I am not in the first 50 pages on search engines after I had that little line changed for no more than 3 hours. Fortunately I realized what I have done and now I am waiting for google to put me back in rights.
IF YOU CHANGE YOUR TITLE TAGS ON ALL THE PAGES ( with a smart php code) GOOGLE WILL SPIT YOU LIKE A BAD TEETH.
DO NOT DO IT UNTIL YOU JUST STARTED WITH YOUR WEBSITE AND YOU HAVE NO CATEGORY OR PRODUCT IN YOUR WEBSITE!
OTHERWISE YOU"LL CRY LIKE ME!
Have a nice day!
NO, my experience do NOT reduce itJAY6390 wrote:Just to notecan be reduced toCode: Select all
<?php if ($keywords) { echo $keywords; } else { echo $title; } ?>
I know it's not much but for such a simple line I like it "clean"Code: Select all
<?php echo $keywords ? $keywords : $title; ?>
--- please reply only with verified data, that is: no 'I think', 'maybe' etc. ---
<title><?php if ($keywords) { echo $keywords; } else { echo $title; } ?></title>
I followed your advice many months ago, but then I looked closely to the title in Google results and compared with the string I have written in the field "Meta tag keywords" and it was not identical. Google results showed the string in "Product name". Yesterday I changed it back and then it worked. You can see the difference in my shop - look to the very top at the titlebar of the browser and compare with the name of the product.
--- please reply only with verified data, that is: no 'I think', 'maybe' etc. ---
of course i would like neatly written title tags but i dont want it to jeopardise my rating. Can someone just assure me whether this is right or wrong?
Many thanks
Users browsing this forum: Amazon [Bot] and 23 guests