Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • tetoelbano2 Friend
    #174020

    i might to know how can I do to remove H1 tag from the logo. I think that to have a duble h1 tag (in the logo + in article title) it’s no a good seo practice specially if the first h1 tag is the same in all the pages. I see that in header.php file in “blocks” path there is something to change but I’m not a programmer and I don’t know how…. I think there is something to change in “template.css” too. Someone can help me?

    khoand Friend
    #438815

    Hi,
    You change this code from templatesja_edeniteblocksheader.php

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

    tetoelbano2 Friend
    #438818

    hi khoand, I know what you mean but I don’t know how to do. I tried this morning but logo disappear

    khoand Friend
    #439068

    Ok. Example: you want to change <h1> to <div>. You do following steps:
    – Replace the code

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

    with


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

    – Replace the code from /templates/ja_edenite/css/template.css

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

    with

    div.logo, div.logo-text {
    margin: 0;
    padding: 0;
    font-size: 200%;
    }

    replace

    h1.logo a {
    width: 435px;
    display: block;
    background: url(../images/logo.gif) no-repeat;
    position: absolute;
    height: 42px;
    bottom: 15px;
    left: 0;
    }

    with

    div.logo a {
    width: 435px;
    display: block;
    background: url(../images/logo.gif) no-repeat;
    position: absolute;
    height: 42px;
    bottom: 15px;
    left: 0;
    }

    replace

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

    with

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

    tetoelbano2 Friend
    #439111

    hi khoand, ok for file header.php but my template.css is different and I don’t find what You expect. Maybe we are using two different systems? I’m using Joomla 1.7. The only h1.logo that I find is between rows 524 and 531:

    /* Logo Image ---*/
    h1.logo { height: 42px; margin: 8px 0 0; width: 435px; }

    h1.logo a {
    background: url(../images/logo.gif) no-repeat left;
    height: 42px;
    width: 435px;
    }

    khoand Friend
    #439241

    ok, you replace the code

    /* Logo Image ---*/
    h1.logo { height: 42px; margin: 8px 0 0; width: 435px; }

    h1.logo a {
    background: url(../images/logo.gif) no-repeat left;
    height: 42px;
    width: 435px;
    }

    with


    /* Logo Image ---*/
    div.logo { height: 42px; margin: 8px 0 0; width: 435px; }

    div.logo a {
    background: url(../images/logo.gif) no-repeat left;
    height: 42px;
    width: 435px;
    }

    tetoelbano2 Friend
    #439273

    Sorry but It doesn’t work. My logo is cut around. May be we have to change some other h1 tag in header.php?
    Now my header.php is like this:

    <?php
    /*
    $JA#COPYRIGHT$
    */
    ?>
    <?php
    $app = & JFactory::getApplication();
    $siteName = $app->getCfg('sitename');
    if ($this->getParam('logoType', 'image')=='image'): ?>
    <div class="logo">
    <a href="index.php" title="<?php echo $siteName; ?>"><span><?php echo $siteName; ?></span></a>
    </div>
    <?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="index.php" title="<?php echo $siteName; ?>"><span><?php echo $logoText; ?></span></a></h1>
    <p class="site-slogan"><?php echo $sloganText;?></p>
    </div>
    <?php endif; ?>

    <?php if($this->countModules('header')) : ?>
    <div id="ja-login">
    <jdoc:include type="modules" name="header" />
    </div>
    <?php endif; ?>

    khoand Friend
    #439460

    Could you give me a link to your website?

    tetoelbano2 Friend
    #439502

    ok. My website is http: // www . traghettiper-sardegna.it

    khoand Friend
    #439574

    You add the code into /templates/edenite/css/template.css

    div.logo a span {
    position: absolute;
    top: -1000px;
    }
    div.logo a {
    display: block;
    }

    tetoelbano2 Friend
    #439637

    Perfect!!!! It seems to be everything ok. Thank you very much!!

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

This topic contains 11 replies, has 2 voices, and was last updated by  tetoelbano2 12 years, 9 months ago.

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