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

LTR to RTL not work
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: LTR to RTL not work

LTR to RTL not work 4 years, 4 months ago #41106

Hi,
I have a problem, when I change language it does not change direction from LTR to RTL
when i change english language to Arabic , Direction same LTR

Re: LTR to RTL not work 4 years, 4 months ago #41107

I fixed this issue in
/public_html/templates/sj_university2/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_university2/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' . ' ' : '';
  • Page:
  • 1
Time to create page: 0.21 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