Zen Cart Logo
Forums / General Questions / Where Should Meta Elements Be Placed?

Where Should Meta Elements Be Placed?

Locked

Views: 909

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
14 Feb 2009, 12:28 AM
#1
donn avatar

donn

Zen Follower

Join Date:
Oct 2007
Posts:
241
Plugin Contributions:
0

Where Should Meta Elements Be Placed?

OK....

I see that ZC generates a title for all pages, and meta tags, as as well as descriptions, may be added easily through the admin.

I was wondering....where should I place any other meta elements that I require to be processed on ALL pages?

Is the Footer.php file a good place? I am guessing that that will work, but i wonder if there is another place that may be more appropriate.

Thanks, and have a good weekend everyone!!!!!!!!
:smile::smile:

Donn

14 Feb 2009, 12:36 AM
#2
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Re: Where Should Meta Elements Be Placed?

includes / languages /english , meta_tags.php

you can define your home page meta tags there , if you look closely you will see that you can define metatags for other pages there , such as contact us , EZPages , etc..

also , for categories / products , you can create metatags from with in admin section .. by clicking on radiation :blush: icon.

hope this helps out a bit .

14 Feb 2009, 1:11 AM
#3
donn avatar

donn

Zen Follower

Join Date:
Oct 2007
Posts:
241
Plugin Contributions:
0

Re: Where Should Meta Elements Be Placed?

tony_sar:

includes / languages /english , meta_tags.php

you can define your home page meta tags there , if you look closely you will see that you can define metatags for other pages there , such as contact us , EZPages , etc..

also , for categories / products , you can create metatags from with in admin section .. by clicking on radiation :blush: icon.

hope this helps out a bit .
Thanks, Tony....

I found the 'favicon.ico' option on the meta_tag.php file, so I set up my favicon.
Thanks...I couldn't find that either!! :smile:

But the rest of the meta_tags.php file seems to be exclusively for keywords, descriptions, and titles.

How do I add other sorts of meta tags, that AREN'T the desciprion or keywords?

14 Feb 2009, 1:35 AM
#4
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Re: Where Should Meta Elements Be Placed?

can you give me example of other meta tags ?

14 Feb 2009, 3:19 AM
#5
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,290
Plugin Contributions:
39

Re: Where Should Meta Elements Be Placed?

I was wondering....where should I place any other meta elements that I require to be processed on ALL pages?

Is the Footer.php file a good place? I am guessing that that will work, but i wonder if there is another place that may be more appropriate.

Meta elements of any kind cannot reside in the footer... They have to be in the <head></head> of the document.

You would additional head elements in the template override for includes/templates/your-template/common/html_header.php

But be careful, much of that file is dynamic and easy to break apart when adding other elements.

~Melanie

14 Feb 2009, 5:40 AM
#6
donn avatar

donn

Zen Follower

Join Date:
Oct 2007
Posts:
241
Plugin Contributions:
0

Re: Where Should Meta Elements Be Placed?

tony_sar:

can you give me example of other meta tags ?

There are a few others, such as Author, Classification, Copyright, Rating, Robots, and more.....

mprough:

Meta elements of any kind cannot reside in the footer... They have to be in the <head></head> of the document.

You would additional head elements in the template override for includes/templates/your-template/common/html_header.php

But be careful, much of that file is dynamic and easy to break apart when adding other elements.

~Melanie
Thanks Melanie....I actually realized after typing the above post that the footer was within the <body> section of the document, and therefore not a place (at all) to stick any meta tags. :no:

I then set about trying to find PHP files containing the <head> tag, but I left for a few hours, and you responded before I could even search for the correct file.

Thank you for your assistance! You surely saved me much time I can now spend being stumped by other ZC stuff... :laugh::laugh:
Donn