Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • pintadmin Friend
    #205169

    Hi, after upgrade from j2.5 to j3.3.6 the logo link doesnt lead to main page.
    Could you say how to fix it?

    Temporarily I changed code of header.php

    from

    <a href=”<?php JURI::base(true) ?>” title=”<?php echo $siteName; ?>”><span><?php echo $siteName; ?></span></a>
    </h1>
    <?php else:
    $logoText = (trim($this->getParam(‘logoText’))==”) ? $siteName : JText::_(trim($this->getParam(‘logoText’)));
    $sloganText = JText::_(trim($this->getParam(‘sloganText’))); ?>
    <div class=”logo-text”>
    <h1><a href=”<?php JURI::base(true) ?>” title=”<?php echo $siteName; ?>”><span><?php echo $logoText; ?></span></a>

    to

    <a href=”http://kuno.crc.nd.edu/” title=”<?php echo $siteName; ?>”><span><?php echo $siteName; ?></span></a>
    </h1>
    <?php else:
    $logoText = (trim($this->getParam(‘logoText’))==”) ? $siteName : JText::_(trim($this->getParam(‘logoText’)));
    $sloganText = JText::_(trim($this->getParam(‘sloganText’))); ?>
    <div class=”logo-text”>
    <h1><a href=”http://kuno.crc.nd.edu/” title=”<?php echo $siteName; ?>”><span><?php echo $siteName; ?></span></a>

    As you can see I just changed “<?php JURI::base(true) ?>”
    to site url – “http://kuno.crc.nd.edu/”

    is it normal or it will influence on correct working of template?
    If so than how to change it properly?

    Ninja Lead Moderator
    #565343

    If you added directly URL of your site into header.php file in this case, I think it is fine because that codes <?php JURI::base(true) ?> will be return “/

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

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

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