Page 1 of 1

Page title in Head

Posted: Mon Dec 10, 2007 11:58 am
by tgkendall
Is there a way to change the <title> tags in the <head> of each page? For example, the default.aspx page on our site has a title of Home Page, which we would like to change to be the name of our store.

Some of the pages have titles that are acceptable (category names in the cart, etc), but we would still like to have more control over these.

Thanks,
Tyler

Posted: Mon Dec 10, 2007 12:08 pm
by sohaib
In the first line in Default.aspx file just change the Title="Home Page" to Title="What You Like"

Posted: Mon Dec 10, 2007 12:38 pm
by tgkendall
Is there no way to do this dynamically?

Posted: Mon Dec 10, 2007 1:34 pm
by jmestep
I was able to do some adjusting in the CategoryList.ascx.asc, for example, by changing

Page.Title = _Category.Name;

to
Page.Title = "Whatever you want" + _Category.Name;

Re: Page title in Head

Posted: Fri Jun 27, 2008 9:32 am
by mfreeze
You can also do this by placing the title tag in the 'Header" section of any page or in the 'HTML Head' section of categories and products.

For example: <title>My Domain Home Page</title>

Re: Page title in Head

Posted: Fri Jun 27, 2008 10:19 am
by jmestep
Mary, when I tried that, I ended up with two titles. Bummer, the one in the META input didn't override the normal one. Are you seeing the same on your sites or is it displaying just one title tag?

Re: Page title in Head

Posted: Fri Jun 27, 2008 12:03 pm
by mfreeze
Yes. I see the two title tags also but the one in my title tag is the one that shows up in the title at the top of the browser. I'm not sure how the search engines will handle two tags in the page but I assume that what I see in the browser is what they will see. But I may be wrong and you know what they say about assumptions. Maybe somebody could answer what the effect of 2 tags will have on search engines. Most of my clients are just interested in seeing the correct title in the browser window so it makes them very happy that putting this tag in changes it.

The drawback to updating the title tag in default.aspx is that it will get replaced with an upgrade and you will need to document that you need to retrofit the change. I have too many Able sites to keep track of to want to do that. It had gotten to the point with 5.5 that it tooke me over a week to do an upgrade of all stores on just one web server. Thank goodness 7.0 allows me to update one store at a time.

Maybe you could just comment out the title tag in the file and then you would not see the second one. Then, in case of an update, the worst that would happen is that you would revert to having 2 tags again.

Another option might be to rename or copy the default.aspx to another name and set the default document in IIS to point to that file. That way, you wouldn't overrite your change with an upgrade but would still need to retrofit any changes from the new default.aspx. Maybe it would help to remind you that the page had been altered.

Re: Page title in Head

Posted: Fri Jun 27, 2008 1:33 pm
by jmestep
I hadn't noticed the two title tags until I ran it thru WebCEO and it was searching for search engine problems. But maybe it's not a real problem.