Is there any way we can add the meta viewport tag in a sightly AEM 6.3 component?
Views
Replies
Total Likes
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}"/>
Even if I add that, viewport is getting changed to user-scalable=no. I'm using resourceSuperType as core/wcm/components/page/v2/page
I tested in aem 6.3 with core components v1, I am able to get the tag.
Did you overlay the v1 component? Which file was this tag added in?
for testing I added in /apps/core/wcm/components/page/v1/page/head.html
Have you got the solution, I am also facing the same issue in AEM 6.5.