Remove Viewport Meta Tag

Remove Viewport Meta Tag

  

Hello Experts, 

I would like to remove the vieport meta tag from my html code. I've manage to use the action "addMetaTag"

but this only add a new viewport Meta Tag.

Any solution?

Thanks in advance.

Hi Diogo,

You could use the following javascript to remove the tags:

$("meta[name='viewport']").remove();

It's kind of a hack, but it works.

Aurelio Junior wrote:

Hi Diogo,

You could use the following javascript to remove the tags:

$("meta[name='viewport']").remove();

It's kind of a hack, but it works.

I've tryed your solution with no succes. whre do you suggest to put the code? 

Page Javascript inside onready function?




Solution

Diogo,

Just put it in the page's javascript, like shown in this image: http://i.imgur.com/SFY65wa.png

Solution

Thanks, it worked.