How to add dir="rtl" in html tag of page in AEM 6.5 | Community
Skip to main content
New Participant
Dec 27, 2021 8:03 AM UTC
Solved

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

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.
arunpatidar
arunpatidarAccepted solution
New Participant
Dec 27, 2021 11:19 AM UTC

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

2 replies

Kishore_Kumar_
Level 9
Dec 27, 2021 1:02 PM UTC

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.

Translate
arunpatidar
arunpatidarAccepted solution
New Participant
Dec 27, 2021 11:19 AM UTC

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

 

Translate
Arun Patidar