How to add nopin-Pinterest meta in all Gallery pages?

micronicos

Joined: 2005-09-20
Posts: 12
Posted: Mon, 2012-02-27 09:38

I am running 2.3.1 with the Carbon theme under Debian Linux & wish to add the meta tag:

<meta name="pinterest" content="nopin" />

to all my Gallery pages.

Actually I'd like to add some Open Graph metas also, so where can I do this global metas adding?

Thanks in advance,
Nico Morrison
London & India

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2012-02-27 12:31

gallery2/themes/your theme/templates/theme.tpl

-s

 
micronicos

Joined: 2005-09-20
Posts: 12
Posted: Mon, 2012-02-27 12:49

@suprsidr

First I am using templates/local/theme.tpl and second WHERE in theme.tpl do I add what? I can't see how to add fixed global meta tags? Please give me a code example with where to insert it?

Thanks a lot by the way, you've helped me before & you seem to be one of the few who will do that, there a lot of unanswered queries in these forums. Really do appreciate such support :)

Nico Morrison
London & India

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2012-02-27 13:04

you can add your <meta /> anywhere between the <head> </head>

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
micronicos

Joined: 2005-09-20
Posts: 12
Posted: Mon, 2012-02-27 13:09

@suprsider

Thanks, what's wrong with me? I saw immediately the <head> etc - well, thanks again! Getting old...

Nico M

 
picdude

Joined: 2006-06-13
Posts: 176
Posted: Wed, 2012-03-07 17:05

hey suprsider!

does this code have to be added to photo.tpl as well? I have one in my /local directory but can't find a <head>

Thanks!

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2012-03-07 17:09
 
picdude

Joined: 2006-06-13
Posts: 176
Posted: Wed, 2012-03-07 17:12

cool... nice easy mod.
Thanks!