-
AuthorPosts
-
June 7, 2012 at 12:39 am #177885
I use Joomfish to translate my site to Arabic ” make site multi languages” ” Arabic and English”
I want to use different font and styles in mega menu in each language,
chavan Friendchavan
- Join date:
- October 2014
- Posts:
- 4612
- Downloads:
- 0
- Uploads:
- 110
- Thanked:
- 1440 times in 1290 posts
June 7, 2012 at 3:11 am #456379There will an RTL Css there you can override the fonts and styles
Note: If you Find my Post useful please click on the Thanks Icon
Sherlock FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
June 7, 2012 at 9:30 am #456454<em>@alaa_alnahal 323975 wrote:</em><blockquote>I use Joomfish to translate my site to Arabic ” make site multi languages” ” Arabic and English”
I want to use different font and styles in mega menu in each language,</blockquote>
Is Your site joomla 1.5 ? In this case I think you would need to add a page suffix class for each language and then you can define separate css rule for each language
June 7, 2012 at 3:38 pm #456529Thank you for reply
please how can I do itSherlock FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
June 8, 2012 at 3:30 am #456594ok you can try as following
1) open the file of templatesja_tirishook.php you would see this function
[PHP]
function custom_body_class () {
//return custom class for body tag.
$cls = ‘ ‘;
$tmpl = T3Template::getInstance();
if (!$tmpl->countModules (‘slideshow’) && !$tmpl->countModules (‘masshead’)) $cls = $cls.’no-sm ‘;
return $cls;
}
[/PHP]
change it to
[PHP]
function custom_body_class () {
//return custom class for body tag.
$cls = ‘ ‘;
$tmpl = T3Template::getInstance();
if (!$tmpl->countModules (‘slideshow’) && !$tmpl->countModules (‘masshead’)) $cls = $cls.’no-sm ‘;
$lang = JFactory::getLanguage();
$tag = $lang->getTag();
$cls .= $tag;
return $cls;
}[/PHP]
2) You now can add css defines similar as the below for the mega menu styles if the language is en
body.en-GB li.mega{
your-css-rules-goes-there;
}And if the language is spanish the define should be
body.es-ES li.mega{
your-css-rules-goes-there;
}That’s the ideal, I hope you got it
1 user says Thank You to Sherlock for this useful post
-
AuthorPosts
This topic contains 5 replies, has 3 voices, and was last updated by Sherlock 12 years, 7 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum