Support Forum

Please note that this forum is only available to you in read only mode. In order to contribute to this conversation you will need to renew your subscription.

Zen Grid Logo placement

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Am loving the Zen Grid. I need some guidance though -- I want to put the logo in the Top1 grid rather than either the Header 1 (I want to put a special graphic there) or the Menu Bar.

I've tried a few things, and the closest I've come to achieving what I want is to remove the logo <?php echo $mainframe->getCfg('');?> and put it in the menu bar, but I'd like the menu items to be flush left.

Is there a way to get around this?
  • Trish Dardine's Avatar
  • Trish Dardine
  • Previous Member
  • 15 posts
  • Karma: 0
The administrator has disabled public write access.
Hi Trish,

Its really a matter of moving this code:
<?php if ($logoPosition =="above") { ?>
								<div id="logo" style="width:<?php echo $$logoCols; ?>px;margin-right: <?php echo $gutter ?>px">
										<a href="<?php echo $logoLink ?>"><img src="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template ?>/style/logo/<?php echo $logoFile ?>" alt="<?php echo $mainframe->getCfg('sitename');?>" /></a>
								</div> 
								<?php } ?>

to around line 230 and remove the following code:
<?php if($this->countModules('top1')) : ?>
									<div id="top1" style="width:<?php echo $$top1Cols; ?>px;margin-right: <?php echo $gutter ?>px">
												<jdoc:include type="modules" name="top1" style="xhtml" />
									</div>
									<?php endif; ?>


Then you will need to open the vars.php file and replace:
if ($logoPosition=="above") {
$header = ($this->countModules('header2')?1:0)+ ($this->countModules('header3')?1:0)+ ($this->countModules('header4')); 
}
elseif ($logoPosition=="below") {
$header = ($this->countModules('header1')?1:0) + ($this->countModules('header2')?1:0)+ ($this->countModules('header3')?1:0)+ ($this->countModules('header4')); 
}

with
if ($logoPosition=="above") {
$header = ($this->countModules('top2')?1:0)+ ($this->countModules('top3')?1:0)+ ($this->countModules('top4')); 
}
elseif ($logoPosition=="below") {
$header = ($this->countModules('top1')?1:0) + ($this->countModules('top2')?1:0)+ ($this->countModules('htop3')?1:0)+ ($this->countModules('top4')); 
}

I havent tested this but I think it shoudl do what you want.

Thanks Anthony
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Happy Campers