test
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • TAnne Mills Friend
    #143579

    This is how you can do it:
    In the index.php file for your template:
    look for this line
    if ($tmpTools->getParam(‘logoType’)==’image’) {

    And then replace the following lines:


    <h1 class="logo">
    <a href="index.php" title="<?php echo $siteName; ?>"><span><?php echo $siteName; ?></span></a>
    </h1>

    With this:


    $currentURL = $tmpTools->getCurrentURL(); //Get the current URL
    if ($currentURL =='/index.php?option=com_content&view=article&id=6&Itemid=7') {
    //Replace the bit after index.php? with the correct URl for the page you want to alter the logo on - NOTE the
    // ampersands need to be written as &
    ?>
    <h1 class="logo logo2">
    <a href="index.php" title="<?php echo $siteName; ?>"><span><?php echo $siteName; ?></span></a>
    </h1>
    <? } else {?>
    <h1 class="logo">
    <a href="index.php" title="<?php echo $siteName; ?>"><span><?php echo $siteName; ?></span></a>
    </h1>
    <? } ?>

    You will also then need to add the following to your template.css file


    h1.logo2 a {
    background: url(../images/logo2.gif) no-repeat !important;
    display: block;
    height: 100px;
    width: 260px

    You will probably then have to use Firebug to check the css and adjust padding etc around the logo2 (unless your logo2 is identical in size to your main logo).

    TAnne Mills Friend
    #314818
    scotty Friend
    #314838

    Nice post Tanne

    zyuong Friend
    #319503

    Ok, have to try it out. Anyone tested ok?

    totium Friend
    #329625

    Hi, tanne.

    in ja_quartz this works well but we’ve added in stead of

    if ($currentURL ==’URL‘)
    if (strpos($currentURL,”URL2“))

    url2= a string in the url from joomfish, in our case “lang=en”, which is unique to english pages on the site

    if (strpos($currentURL,”lang=en“))

    Works great on one of our clients site. We haven’t configured Joomsef yet, can’t say if this will work.

    atticus Friend
    #332296

    I am using the new template JA Rasite and can’t find this line mention
    ($tmpTools->getParam(‘logoType’)==’image’) {
    in the index.php file. Is this line in another file?

    brutalco Friend
    #356199

    i’ve tried it with the sulfur template and it gave me line 141 error……:
    any idia why?

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

This topic contains 7 replies, has 6 voices, and was last updated by  brutalco 14 years, 3 months ago.

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