How to add dir="rtl" in html tag of page in AEM 6.5 | Community
Skip to main content
December 27, 2021
Solved

How to add dir="rtl" in html tag of page in AEM 6.5

  • December 27, 2021
  • 2 replies
  • 1697 views

I want to add the attribute dir="rtl" in <html> tag of the pages, but I don't see any html code in my project structure or root page html where this html tag is present. Is there any way to do it without using JS in AEM 6.5? 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by arunpatidar

Hi,

If your page component has supertype of core component then you can find html at /apps/core/wcm/components/page

 

https://github.com/adobe/aem-core-wcm-components/blob/master/content/src/content/jcr_root/apps/core/wcm/components/page/v3/page/page.html

 

2 replies

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
December 27, 2021

Hi,

If your page component has supertype of core component then you can find html at /apps/core/wcm/components/page

 

https://github.com/adobe/aem-core-wcm-components/blob/master/content/src/content/jcr_root/apps/core/wcm/components/page/v3/page/page.html

 

Arun Patidar
Kishore_Kumar_
Level 9
December 27, 2021

Hi @sourbhad ,

 

In your overriden core page component, in page.html file add the dir attribute. If you want, you can also make the dir attribute as configurable in page properties.