test
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • alaa_alnahal Friend
    #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 Friend
    #456379

    There 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 Friend
    #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

    alaa_alnahal Friend
    #456529

    Thank you for reply
    please how can I do it

    Sherlock Friend
    #456594

    ok 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

Viewing 5 posts - 1 through 5 (of 5 total)

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