Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
You are here: HomeForum
Welcome, Guest

Problem with RTL direction
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Problem with RTL direction

Problem with RTL direction 3 years, 10 months ago #40954

why the template does not reverse when using RTL direction?

Re: Problem with RTL direction 3 years, 10 months ago #40958

I fixed this issue in
/public_html/templates/sj_plus/includes/frame_inc.php

$currentLanguage = JFactory::getLanguage();
$isRTL = $currentLanguage->isRtl();

if($isRTL != 'ltr'){$yt->ytStyleSheet('asset/bootstrap/css/bootstrap.min.css');}


if($isRTL) $yt->ytStyleSheet('css/template-rtl.css');


/public_html/templates/sj_plus/index.php


$currentLanguage = JFactory::getLanguage();
$isRTL = $currentLanguage->isRtl();
$dirisRTL = ($isRTL) ? ' dir="rtl"' : '';

<html <?php echo $dirisRTL; ?> lang="<?php echo $this->language; ?>">

//For RTL direction
$cls_body .= ($isRTL == 'rtl') ? 'rtl' . ' ' : '';

Re: Problem with RTL direction 3 years, 10 months ago #40964

Thank you Vietnh,

Your solution has solved the problem of reversing the orientation of the text. Would it be possible to have the line numbers for your solution.

It would seem that I did not place all the codes in the right places to have the order of the modules according to the RTL orientation.

I am using the latest version of the template, and it would be a good idea to include your solution in a new version.

I noticed that the problem of the template that does not reverse arises for the demo of the template in your site.

Re: Problem with RTL direction 3 years, 10 months ago #40966

Thank you Vietnh,

I have resolved the problem. All is fine.

Re: Problem with RTL direction 3 years, 10 months ago #40969

Have a nice day. Thanks you!
The following user(s) said Thank You: athlonis
  • Page:
  • 1
Time to create page: 0.22 seconds

Notification

Please find your issue via Suggested Posts before submitting your question. We have solved the most of issues and maybe your issue was solved before.

Latest My Topics

No posts to display.

Love all our templates?

Join our membership clubs starting at $49 only for access to all of our templates

Join Now
Home Pricing
Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
SearchSupport
Magento Themes Magento Extensions Free Magento Extensions Prestashop Themes Prestashop Modules Magento 2 Themes