Page 1 of 1

Layout of <title> and <meta> tags

Posted: Wed Nov 12, 2008 3:21 am
by draneb
When you view the source of the page this is how the title and meta tags are shown. What causes things to run together and why is the <title> tag broken up into separate lines with the actual wording pushed over to the right like there is a tab inserted in there or something? This is default able behavior and not due to any customizations I had done.

I edited my personal information out here but kept the layout the same as shown in View Source.

Code: Select all

<link href="App_Themes/Store/a_style.css" type="text/css" rel="stylesheet" /><link href="App_Themes/Store/directory.css" type="text/css" rel="stylesheet" /><META name="description" content="This is where the page description is shown.">
<META name="keywords" content="this, is, where, the, keywords, are, displayed"><title>
	Home Page
</title><style type="text/css">
This is taken from an AC7 demo store

Code: Select all

<link href="App_Themes/Glass_Orange/ComponentArt.css" type="text/css" rel="stylesheet" /><link href="App_Themes/Glass_Orange/print.css" type="text/css" rel="stylesheet" /><link href="App_Themes/Glass_Orange/style.css" type="text/css" rel="stylesheet" /><link href="App_Themes/Glass_Orange/webparts.css" type="text/css" rel="stylesheet" /><title>
	AbleCommerce T-shirt
</title><style type="text/css">
Typically, this layout would seem to be more search engine friendly. It seems like a pretty simple fix, probably just putting some line breaks where needed, right?

Code: Select all

<link href="App_Themes/Store/a_style.css" type="text/css" rel="stylesheet" />
<link href="App_Themes/Store/directory.css" type="text/css" rel="stylesheet" />
<META name="description" content="This is where the page description is shown.">
<META name="keywords" content="this, is, where, the, keywords, are, displayed">
<title>Home Page</title>
<style type="text/css">
Mazhar, you AbleCommerce genius, would you be able to help those who this is bothering, like me? :lol:

Re: Layout of <title> and <meta> tags

Posted: Wed Nov 12, 2008 8:52 am
by jmestep
Plus, the title should be before the keywords and descriptions. I've moved it in the pagehelper.cs, but it doesn't seem to change.

Re: Layout of <title> and <meta> tags

Posted: Wed Nov 12, 2008 9:16 am
by draneb
Yes, thank you Judy, the other AbleCommerce genius. :)

Re: Layout of <title> and <meta> tags

Posted: Wed Nov 19, 2008 9:51 pm
by draneb
Hello,

Could anyone give some insight on how we could get the title and meta data to display properly?

Maybe we could go into the associated files and enter some vbCrLf's or something.
What file(s) would those be?

Thank you in advance!

Re: Layout of <title> and <meta> tags

Posted: Thu Nov 20, 2008 7:39 am
by jmestep
If the code is in a .cs file, you could try /n which is vbcrlf in C#.

Also, http://www.web2market.com will be coming out with a meta tag manager similar to what they have for 5.5 Cold Fusion that will handle these problems.

Re: Layout of <title> and <meta> tags

Posted: Mon Dec 01, 2008 7:05 am
by mazhar
Please read the following thread for further discussion
viewtopic.php?f=42&t=9073