-
AuthorPosts
-
rl27 Friend
rl27
- Join date:
- May 2010
- Posts:
- 32
- Downloads:
- 0
- Uploads:
- 2
- Thanks:
- 8
- Thanked:
- 2 times in 1 posts
February 20, 2011 at 10:55 pm #160479Hi. I am trying to move the logo in this template to inside the menu and to the left with the menu on the right like in this template. http://www.joomlart.com/demo/#templates.joomlart.com/ja_halite Haven’t been able to figure it out yet and was hoping someone could help. Thanks.
Phill ModeratorPhill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
February 21, 2011 at 12:09 am #377618Assumin you are using the J1.5 version open templates>ja_rasite>layouts>blocks>mainnav.php and replace all the code therin with the code below
<div id="ja-mainnav" class="wrap">
<div class="main clearfix">
<?php
$siteName = $this->sitename();
if ($this->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($this->getParam('logoType-text-logoText'))=='') ? $config->sitename : $this->getParam('logoType-text-logoText');
$sloganText = (trim($this->getParam('logoType-text-sloganText'))=='') ? JText::_('SITE SLOGAN') : $this->getParam('logoType-text-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 (($jamenu = $this->loadMenu())) $jamenu->genMenu ($this->getParam('startlevel',0), $this->getParam('endlevel',-1)); ?>
</div>
</div>
<?php if ($this->hasSubmenu() && ($jamenu = $this->loadMenu())) : ?>
<div id="ja-subnav" class="wrap">
<div class="main clearfix">
<?php $jamenu->genMenu (1); ?>
</div>
</div>
<?php endif;?>
<ul class="no-display">
<li><a href="<?php echo $this->getCurrentURL();?>#ja-content" title="<?php echo JText::_("Skip to content");?>"><?php echo JText::_("Skip to content");?></a></li>
</ul>
then open templates>ja_rasite>layouts>blocks>header.php and remove the code highlighted in red below
<?php if ($this->hasSubmenu() && ($jamenu = $this->loadMenu())) { ?>
<div id="ja-header" class="wrap" style="margin-top: 76px;">
<?php } else { ?>
<div id="ja-header" class="wrap">
<?php } ?>
<div class="main">
<div class="inner clearfix">
<?php
$siteName = $this->sitename();
if ($this->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($this->getParam('logoType-text-logoText'))=='') ? $config->sitename : $this->getParam('logoType-text-logoText');
$sloganText = (trim($this->getParam('logoType-text-sloganText'))=='') ? JText::_('SITE SLOGAN') : $this->getParam('logoType-text-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('search')) : ?>
<div id="ja-search">
<jdoc:include type="modules" name="search" />
</div>
<?php endif; ?>
</div>
</div>
</div>
You will then have to edit a little css but that all depends on the logo you are using.
-
AuthorPosts
This topic contains 2 replies, has 2 voices, and was last updated by Phill 13 years, 9 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum