If I missed it somewhere in the documentation, I apologize but I cannot see where one can insert description and keyword meta tags for either the Gallery as a whole or for individual albums.
I found the html wrapper stuff but that gets inserted in the body of the page. Where does the html that ends up in the header section reside?
TIA
SalemKayaker
Posts: 22892
in util.php you will see a function called function metatags() { you can add meta tags in that function. It will not be for spacific albums it will be gallery wide.
If you need album spacific meta tags then you would need a new fuction ( a copy of this one) and call it in view_album.php
Dave
Posts: 22
Hi Dave,
I am also interested in adding meta. I tried as per your response to SalemKayaker but it appeared that util.php only allows 4 metatags. Where exactly do I need to place the tags.
Appreciate you help, your gallery is great.
Thanks
Transco :D v
Posts: 22892
function metatags() { global $gallery; echo '<meta http-equiv="content-style-type" content="text/css">'; echo "\n ". '<meta http-equiv="content-type" content="Mime-Type; charset='. $gallery->charset .'">'; echo "\n ". '<meta name="content-language" content="' . str_replace ("_","-",$gallery->language) . '">'; echo "\n\n"; }you can add as many as you wish like:
function metatags() { global $gallery; echo '<meta http-equiv="content-style-type" content="text/css">'; echo "\n ". '<meta http-equiv="content-type" content="Mime-Type; charset='. $gallery->charset .'">'; echo "\n ". '<meta name="content-language" content="' . str_replace ("_","-",$gallery->language) . '">'; echo "\n ". '<meta name="DESCRIPTION" content="your photos on your website">'; echo "\n ". '<meta name="KEYWORDS" content="">'; echo "\n ". '<meta name="ROBOTS" content="INDEX,FOLLOW">'; echo "\n\n"; }Change to your requirements
Posts: 22
Thanks Dave, appreciate your help