Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • Anonymous Moderator
    #144188

    To solve this idea, please try to do with my guider:

    + Open templates/ja_nickel/index.php, at about line 79, find following code:


    <!-- HEADER -->
    <div id="ja-header" class="wrap">
    <div class="main clearfix">
    <?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'))=='') ? $config->sitename : $tmpTools->getParam('logoText');
    $sloganText = (trim($tmpTools->getParam('sloganText'))=='') ? JText::_('SITE SLOGAN') : $tmpTools->getParam('sloganText'); ?>
    <div class="logo-text">
    <p class="site-slogan"><?php echo $sloganText;?></p>
    <h1>
    <a href="index.php" title="<?php echo $siteName; ?>"><span><?php echo $logoText; ?></span></a>
    </h1>
    </div>
    <?php } ?>
    <?php if($this->countModules('ja-login')) : ?>
    <div id="ja-headtools" class="ja-headtool">
    <ul>
    <jdoc:include type="modules" name="ja-login" />
    </ul>
    </div>
    <?php endif; ?>
    </div>
    </div>
    <!-- //HEADER -->

    and change to:


    <!-- HEADER -->
    <div id="ja-header" class="wrap">
    <div class="main clearfix">
    <?php if($this->countModules('ja-banner')) : ?>
    <div id="ja-banner">
    <jdoc:include type="modules" name="ja-banner" style="raw" />
    </div>
    <?php endif; ?>
    <?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'))=='') ? $config->sitename : $tmpTools->getParam('logoText');
    $sloganText = (trim($tmpTools->getParam('sloganText'))=='') ? JText::_('SITE SLOGAN') : $tmpTools->getParam('sloganText'); ?>
    <div class="logo-text">
    <p class="site-slogan"><?php echo $sloganText;?></p>
    <h1>
    <a href="index.php" title="<?php echo $siteName; ?>"><span><?php echo $logoText; ?></span></a>
    </h1>
    </div>
    <?php } ?>
    <?php if($this->countModules('ja-login')) : ?>
    <div id="ja-headtools" class="ja-headtool">
    <ul>
    <jdoc:include type="modules" name="ja-login" />
    </ul>
    </div>
    <?php endif; ?>
    </div>
    </div>
    <!-- //HEADER -->

    + Open templates/ja_nickel/css/template.css file, add following code to the end of file:


    #ja-banner {
    float: left;
    width: 100%;
    height: 30px;
    }

    – In this css file, at about line 771, find following code:


    #ja-header {
    height: 100px;
    z-index:999;
    }

    #ja-header .main {
    height: 100px;
    position: relative;
    }

    h1.logo, h1.logo-text {
    font-size: 300%;
    left: 0;
    letter-spacing: 1px;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 15px;
    }

    and change to:


    #ja-header {
    height: 130px;
    z-index:999;
    }

    #ja-header .main {
    height: 130px;
    position: relative;
    }

    h1.logo, h1.logo-text {
    font-size: 300%;
    left: 0;
    letter-spacing: 1px;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 45px;
    }

    Hope it helps.

    omniapublishing Friend
    #325409

    Hello! And if I want to put the banner position near the logo on the edera template?

    Anonymous Moderator
    #325507

    Hi omniapublishing

    Please check this thread:

    http://www.joomlart.com/forums/showpost.php?p=155307&postcount=8

    qu9l7f Friend
    #343255

    <em>@JA Developer 155336 wrote:</em><blockquote>Hi omniapublishing

    Please check this thread:

    http://www.joomlart.com/forums/showpost.php?p=155307&postcount=8</blockquote>
    Hi
    my banner didn’t appear. :confused:
    In the Joomla! ‘s Module: used for insert a banner , there isn’t a position ‘ja-banner’ voice (only ‘banner’). When I put the position = banner, the Ja-Nichel Template (with Your suggestion’e mods) did’t show the banner.
    Thanks

    Saguaros Moderator
    #343883

    Dear all

    Here is some tutorials about module creating
    http://www.joomlatraining.com/newsletters/how-to-create-new-joomla-module-positions/
    http://docs.joomla.org/How_do_you_add_a_new_template_position%3F

    Pls try to add a new module as JA Develeper mentioned

    Thanks

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

This topic contains 5 replies, has 4 voices, and was last updated by  Saguaros 14 years ago.

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