Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

title & meta tag help


Guest

Recommended Posts

i've MS2.2 & sts2.01 installed. that's all

 

now that on every php file in the main www folder, there is a line:

 

<title><?php echo TITLE; ?></title>

 

which controls the title on the IE bar, i've tried to edit to have each page having different titles, i've tried

 

 

:'( <title><?php echo "test name"; ?></title>

 

:'( <title><?php echo TITLE2 ; ?></title> (where i defined TITLE2 below TITLE in the english.php file)

 

:'( delete the whole line

 

but all gave me the same TITLE which is defined in the english.php file displyed, even if i deleted the whole line.

 

so i hope someone could advice me where went wrong on my codes coz i want to have different title & meta tags for each of my pages! thanks!!! :thumbsup:

 

Daniel :'(

Link to comment
Share on other sites

i've MS2.2 & sts2.01 installed. that's all

 

now that on every php file in the main www folder, there is a line:

 

<title><?php echo TITLE; ?></title>

 

which controls the title on the IE bar, i've tried to edit to have each page having different titles, i've tried

:'( <title><?php echo "test name"; ?></title>

 

:'( <title><?php echo TITLE2 ; ?></title> (where i defined TITLE2 below TITLE in the english.php file)

 

:'( delete the whole line

 

but all gave me the same TITLE which is defined in the english.php file displyed, even if i deleted the whole line.

 

so i hope someone could advice me where went wrong on my codes coz i want to have different title & meta tags for each of my pages! thanks!!! :thumbsup:

 

Daniel :'(

Link to comment
Share on other sites

I dont know if this helps but as a test, edit your home page eg index.php to include an html tag for a title eg

 

<META NAME="language" CONTENT="en"><title>My web site</title>

However this tag would not apply on any other page. Why do you want a different title tag on each page ? Same point for meta tags ?

Link to comment
Share on other sites

Daniel - You need to install a contribution like Header Tags. Doing it the way you are trying will work but with only limited success. How will you change the title for each product. There are ways but the easiest is to install the above contribution and let it do the work for you.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

xjbhx, Vger, thanks! but i;ve tried both with no success as the same old thing is still shown - title from the english.php file :(

 

Jack, which contrib can allow me to have different title for every page?

Link to comment
Share on other sites

Sorry, didnt realise that you had STS installed. Look for a file called something like template_main and look for the title tag in that.

 

Vger

Link to comment
Share on other sites

xjbhx, Vger, thanks! but i;ve tried both with no success as the same old thing is still shown - title from the english.php file :(

 

Jack, which contrib can allow me to have different title for every page?

The one named Header Tags Controller.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

vger,

 

if the title & meta tag is defined in sts_template.html, then every page will have the same title & meta tag, which is not what i needed.

 

thanks

Link to comment
Share on other sites

Header Tags Controller will work with STS (at least it says so in the documentation for Header Tags Controller).

 

You could have defined individual title tags if STS had not been installed (sorry - missed that at first).

 

The main template for STS is only a kicking off point for setting up your own templates for other pages (even if they are a copy of the 'main' template). Each of these can have their own 'title' tags.

 

I have installed both those mods, but not together - and I must admit I find it much easier to build pages from my own default template. Once you've set up a default page to use as a template for other pages it's a whole lot easier than using STS.

 

Vger

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...