Page title in Head

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
tgkendall
Ensign (ENS)
Ensign (ENS)
Posts: 5
Joined: Tue Nov 06, 2007 4:08 pm

Page title in Head

Post by tgkendall » Mon Dec 10, 2007 11:58 am

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

User avatar
sohaib
Developer
Developer
Posts: 1079
Joined: Fri Jan 23, 2004 1:38 am

Post by sohaib » Mon Dec 10, 2007 12:08 pm

In the first line in Default.aspx file just change the Title="Home Page" to Title="What You Like"

tgkendall
Ensign (ENS)
Ensign (ENS)
Posts: 5
Joined: Tue Nov 06, 2007 4:08 pm

Post by tgkendall » Mon Dec 10, 2007 12:38 pm

Is there no way to do this dynamically?

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Post by jmestep » Mon Dec 10, 2007 1:34 pm

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;
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

User avatar
mfreeze
Commodore (COMO)
Commodore (COMO)
Posts: 421
Joined: Mon Jan 24, 2005 2:07 pm
Location: Washington, NJ
Contact:

Re: Page title in Head

Post by mfreeze » Fri Jun 27, 2008 9:32 am

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>
Mary E Freeze

Freeze Frame Graphics
Web Hosting and Design, ASP and CFMX Development

http://www.ffgraphics.com

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Page title in Head

Post by jmestep » Fri Jun 27, 2008 10:19 am

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?
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

User avatar
mfreeze
Commodore (COMO)
Commodore (COMO)
Posts: 421
Joined: Mon Jan 24, 2005 2:07 pm
Location: Washington, NJ
Contact:

Re: Page title in Head

Post by mfreeze » Fri Jun 27, 2008 12:03 pm

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.
Mary E Freeze

Freeze Frame Graphics
Web Hosting and Design, ASP and CFMX Development

http://www.ffgraphics.com

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Page title in Head

Post by jmestep » Fri Jun 27, 2008 1:33 pm

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.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

Post Reply