Adding a meta tag in AEM 6.3 component | Community
Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

6 replies

arunpatidar
Community Advisor
Community Advisor
November 23, 2018

Hi,

Are you not able to add tag like below:

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" data-sly-use.head="head.js">

<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">

<title>${pageProperties.pageTitle || currentPage.title}</title>

<meta name="keywords" content="${head.keywords}"/>

<meta name="description" content="${properties.jcr:description}"/>

Arun Patidar
Level 2
November 23, 2018

Even if I add that, viewport is getting changed to user-scalable=no. I'm using resourceSuperType as core/wcm/components/page/v2/page

arunpatidar
Community Advisor
Community Advisor
November 23, 2018

I tested in aem 6.3 with core components v1, I am able to get the tag.

Arun Patidar
Level 2
November 23, 2018

Did you overlay the v1 component? Which file was this tag added in?

arunpatidar
Community Advisor
Community Advisor
November 23, 2018

for testing I added in /apps/core/wcm/components/page/v1/page/head.html

Arun Patidar
Level 2
September 7, 2020

Have you got the solution, I am also facing the same issue in AEM 6.5.