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.

change logo width

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

Hey guys, i need to decrease logo postion width and increase menu position width.

I try in blocks/nav.php butdid not find the way to do it.

Cheers,
  • Luis's Avatar
  • Luis
  • 6 Month Developer
  • 94 posts
  • Karma: 0
The administrator has disabled public write access.
Hi Luis,

That is the file to change - what did you try and change?

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Well on the other template to do this i reduced the span. But in this one i don't find any span to change...

If i'm not mistake, this is the code to change:

<div class="zen-container">
<div class="row-fluid">

<div class="span<?php echo $logowidth; ?>">
<button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-list-ul"></span>
</button>

<div class="logo logo-<?php echo $logotype ?> <?php echo $logoalign ?>">
<<?php echo $logoclass ?>>
<a href="<?php echo JURI::base(true) ?>" title="<?php echo $logotext ?>">
<span>
<?php if($logotype == "image" || $logotype =="both") { ?>
<?php if($logoimage !=="") { ?><img src="<?php echo $logoimage ?>"/><?php } ?>
<?php } ?>
<?php if($logotype == "text" || $logotype =="both") { ?>
<?php echo $logotext; ?>
<?php } ?>

</span>
</a>
</<?php echo $logoclass ?>>
<?php if($tagline_enabled) {?>
<div id="tagline"><span><?php echo $tagline ?></span></div>
<?php } ?>

Where should i edit to decrease the logo position width and to increase menu nav?
  • Luis's Avatar
  • Luis
  • 6 Month Developer
  • 94 posts
  • Karma: 0
The administrator has disabled public write access.
Do you see this bit?

// logic for widths of logo / menu / social nav
if($logotype =="none" && !($this->countModules('social'))) {
$navwidth = "12";
}
elseif($logotype !=="none" && !($this->countModules('social'))) {
$navwidth = "9";
}
elseif($logotype =="none" && ($this->countModules('social'))) {
$navwidth = "9";
}
else {
$navwidth = "5";
}

The values will be different as I've changed them - the last value is the value to change

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
No. This file don't have that code in it.

This is what i have in /templates/newlifestyle/tpls/blocks/nav.php


defined('_JEXEC') or die;

$menualign = $this->params->get('menualign', 'zenleft');

$navwidth = "12";
$navwidth = $this->params->get('menuwidth');
$logotext = $this->params->get('logotext');
$logoclass = $this->params->get('logoclass', 'h2');
$tagline_enabled = $this->params->get('tagline_enabled');
$tagline = $this->params->get('tagline');
$logotype = $this->params->get('jblogotype', 'text');
$logoalign= $this->params->get('logoalign', 'zenleft');
$logoimage = $this->params->get('jblogoimage', '');
$tagline_enable = $this->params->get('tagline_enabled');
$logowidth = $this->params->get('logowidth');



$mobiletype = "";

if($this->getParam('navigation_collapse_offcanvas')) {
$mobiletype = "offcanvas";
}
else {
$mobiletype = "togglemenu";
}
?>


<!-- MAIN NAVIGATION -->
<?php if($this->params->get('stickynav')) { ?>
<nav id="navwrap" class="<?php echo $mobiletype; ?>" data-uk-sticky>
<?php } else { ?>
<nav id="navwrap" class="<?php echo $mobiletype; ?>">
<?php } ?>
<div class="zen-container">
<div class="row-fluid">

<div class="span<?php echo $logowidth; ?>">
<button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-list-ul"></span>
</button>

<div class="logo logo-<?php echo $logotype ?> <?php echo $logoalign ?>">
<<?php echo $logoclass ?>>
<a href="<?php echo JURI::base(true) ?>" title="<?php echo $logotext ?>">
<span>
<?php if($logotype == "image" || $logotype =="both") { ?>
<?php if($logoimage !=="") { ?><img src="<?php echo $logoimage ?>"/><?php } ?>
<?php } ?>
<?php if($logotype == "text" || $logotype =="both") { ?>
<?php echo $logotext; ?>
<?php } ?>

</span>
</a>
</<?php echo $logoclass ?>>
<?php if($tagline_enabled) {?>
<div id="tagline"><span><?php echo $tagline ?></span></div>
<?php } ?>


</div>
</div>


<?php if ($this->countModules('cart') || $this->countModules('search')) : ?>
<div id="toolwrap">
<div id="toolwrap-inner">
<?php if ($this->countModules('cart')) : ?>
<!-- Above Content -->
<div id="cart-trigger">
<a href="#"><span class="icon-shopping-cart"></span></a>
</div>

<?php endif ?>

<?php if ($this->countModules('search')) : ?>
<!-- Above Content -->
<div id="search-trigger">
<a href="#"><span class="icon-search"></span></a>
</div>

<?php endif ?>
</div>
</div>
<?php endif ?>
<div class="navwrapper navbar <?php echo $menualign ?> span<?php echo $navwidth; ?> <?php if ($this->countModules('cart') || $this->countModules('search')) : ?>tool-padding<?php endif; ?>">



<div class="nav-collapse collapse<?php echo $this->getParam('navigation_collapse_showsub', 1) ? ' always-show' : '' ?> <?php echo $menualign; ?>">
<?php if ($this->getParam('navigation_type') == 'megamenu') : ?>
<?php $this->megamenu($this->getParam('mm_type', 'mainmenu')) ?>
<?php else : ?>
<jdoc:include type="modules" name="<?php $this->_p('menu') ?>" style="raw" />
<?php endif ?>
</div>

<?php if ($this->countModules('search')) : ?>
<div id="search-nav" style="display:none">
<jdoc:include type="modules" name="search" style="raw" />
</div>
<!-- //Above Content -->
<?php endif ?>

<?php if ($this->countModules('cart')) : ?>
<div id="cart-nav" style="display:none">
<jdoc:include type="modules" name="cart" style="xhtml" />
</div>
<!-- //Above Content -->
<?php endif ?>


<?php if ($this->checkSpotlight('panel', 'panel1, panel2, panel3, panel4')) : ?>
<div id="panel">
<div class="zen-container">
<?php
$this->spotlight ('panel', 'panel1, panel2, panel3, panel4')
?>
</div>
</div>
<?php endif;?>

</div>
</div>
</div>
</nav>
<!-- //MAIN NAVIGATION -->
  • Luis's Avatar
  • Luis
  • 6 Month Developer
  • 94 posts
  • Karma: 0
Last Edit: 9 years 4 months ago by Luis.
The administrator has disabled public write access.
ah sorry I've made a mistake

You can find the logo width settings in the theme tab of the template settings

sorry about that

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
How did i missed that... :\

It's done, thanks for your help Paul
  • Luis's Avatar
  • Luis
  • 6 Month Developer
  • 94 posts
  • Karma: 0
The administrator has disabled public write access.
sorry for the confusion

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
The following user(s) said Thank You: Luis

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

Happy Campers