Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • Niccolo Villiger Friend
    #190101

    Hi,

    I found a little problem.
    I have a multilanguage website and I would like to change link for the logo.
    I would like the link to point to the home page of the language.

    Example:

    – I’m on the English website and the link on the logo should point to the English Home page;
    – I’m on the Italian website and the link on the logo should point to the Italian Home page;
    – I’m on the French website and the link on the logo should point to the French Home page.

    I was able to make it working for the home link but not for the logo link. At the moment the logo link is pointing to the Main Language Home Page (that is English) for all tha language, why? How can i solve it?

    Thanks

    Ninja Lead Moderator
    #503907

    In this case you need to customize it from header.php file.

    + Copy plugins/system/jat3/jat3/base-themes/default/blocks/header.php file

    + Paste to templates/ja_university/blocks folder

    + Open header.php file in the template

    Find


    <h1 class="logo">
    <a href="<?php JURI::base(true) ?>" title="<?php echo $siteName; ?>"><span><?php echo $siteName; ?></span></a>
    </h1>

    + And use this code below

    $lang = JFactory::getLanguage();
    if ($lang->getTag() == 'en-GB') {
    whatever code
    else {
    etc.

    You will change the link for the logo to Homepage each language.

    I only suggest some above solution because this request takes time and out of JA support scope

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

This topic contains 2 replies, has 2 voices, and was last updated by  Ninja Lead 11 years, 2 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum