Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • dannyhunt Friend
    #126556

    I changed the logotype to “text” logo in the vars file but it still shows the image.
    Is this a bug? How do I fix this?

    # Template Logo
    $_params->set(‘logoType’, ‘text’); // image, text
    $_params->set(‘logoText’, ‘My Website’); // used if logoType is text
    $_params->set(‘sloganText’, ‘Welcome to my web site!’); // used if logoType is text
    # END: TEMPLATE CONFIGURATIONS ##########

    Nam Nguyen Phi Friend
    #242098

    Yes, it is a bug of template.
    To fix this bug, pls do as follow:
    1. Open /templates/ja_corona/index.php
    2. Go to line: 87, replace

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

    by

    <?php
    $siteName = $tmpTools->sitename();
    if ($tmpTools->getParam('logoType')=='image') { ?>
    <h1 class="logo">
    <a href="index.php" title="<?php echo $siteName; ?>"><span><?php echo $siteName; ?></span></a>
    </h1>
    <?php } else {
    $logoText = (trim($tmpTools->getParam('logoText'))=='') ? $siteName : $tmpTools->getParam('logoText');
    $sloganText = (trim($tmpTools->getParam('sloganText'))=='') ? 'SITE SLOGAN' : $tmpTools->getParam('sloganText'); ?>
    <h1 class="logo-text">
    <a href="index.php" title="<?php echo $siteName; ?>"><span><?php echo $logoText; ?></span></a>
    </h1>
    <p class="site-slogan"><?php echo $sloganText;?></p>
    <?php } ?>

    3. Save & close it
    4. Open /templates/ja_corona/css/template.css
    5. Go to line: 1107, replace

    h1.logo {
    font-size: 200%;
    margin: 0 0 0 5px;
    padding: 0;
    text-transform: uppercase;
    }

    h1.logo a {
    background: url(../images/logo.png) no-repeat;
    bottom: 10px;
    display: block;
    height: 70px;
    left: 20px;
    outline: none;
    position: absolute;
    width: 285px;
    }

    h1.logo a span {
    position: absolute;
    top: -1000px;
    }

    by

    h1.logo, h1.logo-text {
    font-size: 200%;
    margin: 0 0 0 5px;
    padding: 0;
    text-transform: uppercase;
    }

    h1.logo a {
    background: url(../images/logo.png) no-repeat;
    bottom: 10px;
    display: block;
    height: 70px;
    left: 20px;
    outline: none;
    position: absolute;
    width: 285px;
    }

    h1.logo a span {
    position: absolute;
    top: -1000px;
    }

    h1.logo-text a {
    color: #FFFFFF !important;
    text-decoration: none;
    outline: none;
    position: absolute;
    top: 25px;
    left: 10px;
    letter-spacing: 1px;
    }

    p.site-slogan {
    margin: 0;
    padding: 2px 2px;
    color: #CCCCCC;
    font-size: 100%;
    position: absolute;
    top: 50px;
    left: 10px;
    }

    6. Save and refresh your site

    or can replace index.php & template.css by my attached files.

    This bug will be update into download package soon.

    Sorry for any inconvenience.
    Regards.


    1. logo_text.zip
    2Patrick Friend
    #262175

    Hi
    Just to check…the chnges you proposed or the files to replace ..are they for Joomla 1.015 and can I replace them in the Corona quickstart Joomla files ?

    Am I right to assume that I have to replace the quickstart Joomla 1.015 files and this is for a fresh installation ( ie can I change them if I have already got a number of components installed eg DOCMAN, CB etc ) ?

    Thanks in advance

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

This topic contains 3 replies, has 3 voices, and was last updated by  2Patrick 16 years, 4 months ago.

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