How To Reverse Footer Section in Mobile Arabic Pages ? | Community
Skip to main content
jair9686605
Level 2
May 22, 2024
Solved

How To Reverse Footer Section in Mobile Arabic Pages ?

  • May 22, 2024
  • 1 reply
  • 903 views


I have implemented footer using core components and imposed that experience fragment in template to visualize the footer section with respect to the language pages.

Currently using service pack 20.
1. Created experience fragment footer:

looks like this for en: myApp/language-Masters/en/site/footer/master.html

looks like this for ar: myApp/language-Masters/ar/site/footer/master.html

2. Used this en-XF in template while creating page for english the english footer will be dispalyed.

3. For Arabic pages arabic will be displaying. 

 

Issue: English footer is displaying correct order in english pages and in arabic footer is arabic footer displaying but in mobile view the footer is displaying in reverse. Attached screenshots PFA.

Desktop: 4 3 2 1

Mobile:

the social icons should go bottom

 


Client is not agreed for reversing with hack code CSS.
can we achieve this by using default AEM features, any pointers or suggestions.?

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 jair9686605

Thanks.

We have fixed the issue by creating custom component.

 

 

1 reply

Raja_Reddy
Community Advisor
Community Advisor
May 22, 2024

Hi @jair9686605 

Yes, this issue can be resolved by using the default AEM features. You can use the "dir" attribute in the HTML tag to specify the direction of the text.

For example, in the HTML tag of your footer, you can add the "dir" attribute with the value "ltr" for English and "rtl" for Arabic. This will ensure that the text is displayed in the correct order for both languages, regardless of the device or screen size
how you can add the "dir" attribute to your HTML tag:

<footer dir="ltr">
<!-- English footer content -->
</footer>

<footer dir="rtl">
<!-- Arabic footer content -->
</footer>

jair9686605
Level 2
May 23, 2024

@raja_reddy  Thanks for the reply Raja.

Footer is not a custom component, we have created footer with core components only. So there is no HTML for this footer xf.

In page component already "rtl" has been added.

 

 

jair9686605
jair9686605AuthorAccepted solution
Level 2
May 30, 2024

Thanks.

We have fixed the issue by creating custom component.