Leonardo Andrade
Leonardo Andrade

Reputation: 2618

How to change the content of viewport property of meta tag in Plone 4.1?

How can I change the content of viewport property of meta tag in Plone 4.1?

For example:

Plone defines:

meta name="viewport" content="width=device-width; initial-scale=0.6666; maximum-scale=1.0; minimum-scale=0.6666"

But I need:

meta name="viewport" content="width=device-width, initial-scale=1"

How I can do this?

Upvotes: 1

Views: 125

Answers (2)

Vito
Vito

Reputation: 1201

If your're using a Diazo Theme, you could re-define the value via "replace" directive

http://docs.diazo.org/en/latest/advanced.html

Upvotes: 3

Mathias
Mathias

Reputation: 6839

I assume your are using a Theme based on plonetheme.sunburst.

Unfortunately your part ist hard coded directly in the main_template.pt Which means the only way to change this, is to customise the main_template.pt.

You an either to this thru the ZMI...

portal_skins -> sunburst_templates -> main_template.pt -> Click "Customize" button -> Change your line

... or using z3c.jbot to customise the template (you need your own policy, theme, or customisation package).

If you have your own package, you can also register a new skins directory and put the customised main_template into it.

Upvotes: 3

Related Questions