|
ffca5979511c197d4fd9ffac730fc5c8
|
META tagsby Copper - Member - 06:49PM, Apr 19, 2007 |
|
How would I go about making separate META tags and page titles for each page? I’m getting the same tags on every page. Thanks. |
|
|
in theme.liquid you should have something like this.
— Last edited 07:16PM, Apr 19, 2007 |
|
|
Thanks Dan. Where would the dynamic code go? What’s a “Product-Foo”?
|
|
|
Should go in the head section of the theme.liquid file. Product-Foo is just a name I came up with to illustrate the title of product page.
|
|
|
Gotcha – Thanks Dan!
|
|
|
Hi Dan, Yesterday I came across a website, whois.domaintools.com , it gives you information about your domain. In the section for “front page information” , under “Meta Relevance” it said “No terms. Site needs Meta Description.” I had a look in my admin, in Theme.Liquid, but was not sure what to look for. What would a Meta Description look like ? And where is it usually placed ? Thanks a lot, Mickmac
|
|
|
Hi Mickmac, The meta tags would go inbetween the <head> </head> tags usually right under the title tags. The meta description is usually a text string that gives a description of the site. It would look like this.
|
|
|
Thanks Dan, You were right, it was there between the <head> </head> tags. I wonder why that report on my site said ” No terms.Site needs Meta Description” ? What would happen if I added another one, would that cause problems ? Mickmac
|
|
|
I have a couple of problems with this approach. 1. I use HTML in my description…or I guess textile is putting formatted text into the db for my description, so when I use {{ product.description }} in the meta, I get broken html and some browsers dont render correctly. So how do I de-textile-ify my description so I can use it in the meta? B. I thought it was natural to use my {{ product.tags }} in the keywords meta, but they come out as a single string. How do I generate a comma delimited list from {{ product.tags }}? tia,
|
|
|
bump
|
|
|
You can try ---
Tobias Lütke
|
|
|
Thanks, thats great. The join works perfectly, however strip_tags does not seem to be stripping. See this: as an example. The last part of the description is showing at the top of the page, and if you view source, you’ll see all of the html in the meta. Thanks again…
|
danW
Shopify Advisor
07:15PM, Apr 19, 2007