-
AuthorPosts
-
June 18, 2008 at 5:19 pm #129835
I’m right now working on a multilingual website (English/Arabic). I have English as default and when i switch to arabic all elements are taking the right position except the top menu (suckerfish) items which keeps the ltr order for example:
Home – The news – FAQ – Contact
I want the menu items start from the right position with the order:
Contact – FAQ – The news – Home
Among the template characteristics it says “Fully RTL Support “, yet the top menu items aligning doesn’t change.
I don’t know which css element to change..any help would be appreciated.. ThanksSherlock FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
June 19, 2008 at 7:44 am #254579Hi sajok !
You can do it following way :
Open ja-sosdmenu.css file in templates/ja_purity/css folder , find following code section at about line 11 :
#ja-mainnav ul.menu {
border-right:1px solid #555555;
float:left;
margin:0pt;
padding:0pt;
}
change to :
#ja-mainnav ul.menu {
border-right:1px solid #555555;
float:right;
margin:0pt;
padding:0pt;
}
June 20, 2008 at 1:56 am #254797Thanks for the reply :).. actually I found a better solution to still keep my website multilingual, and this is what i did:
In templates/ja_purity/css folder, I opened “template_rtl.css” file, and added the following code :
#ja-mainnav ul.menu {
float: right;#ja-mainnav ul.menu li {
float: right;
}In index.php file, I moved the link to “template_rtl.css” to the position below the link to “ja-sosdmenu.css”, as you can see in the following:
<?php if ($this->countModules('hornav')): ?>
<?php if ($tmpTools->getParam('horNavType') == 'css'): ?>
<link rel="stylesheet" href="<?php echo $tmpTools->templateurl(); ?>/css/ja-sosdmenu.css" type="text/css" />
<script language="javascript" type="text/javascript" src="<?php echo $tmpTools->templateurl(); ?>/js/ja.cssmenu.js"></script>
<?php else: ?>
<link rel="stylesheet" href="<?php echo $tmpTools->templateurl(); ?>/css/ja-sosdmenu.css" type="text/css" />
<script language="javascript" type="text/javascript" src="<?php echo $tmpTools->templateurl(); ?>/js/ja.moomenu.js"></script>
<?php endif; ?>
<?php endif; ?><?php if($this->direction == 'rtl') : ?>
<link rel="stylesheet" href="<?php echo $tmpTools->templateurl(); ?>/css/template_rtl.css" type="text/css" />
<?php else : ?>
<link rel="stylesheet" href="<?php echo $tmpTools->templateurl(); ?>/css/menu.css" type="text/css" />
<?php endif; ?>
so far this works fine for me, and if it works for others, I think it should be implemented in the core files to make the top menu conform to rtl languages. I hope this works..thanks -
AuthorPosts
This topic contains 4 replies, has 3 voices, and was last updated by karamalla 16 years ago.
We moved to new unified forum. Please post all new support queries in our New Forum