Bootstrap double menu and Navigation

Permalink
Hi,

I am using the bootstrap theme from the market place
http://www.concrete5.org/marketplace/themes/bootstrap/...

but am getting a double menu and logo showing.

http://46.20.119.159/~tmdesign/testmeasurit/...

the second logo and nav don't show when you are logged into the site but I just can't work out where is is pulling from.

Can anyone help?

TMDesigns
 
foster replied on at Permalink Reply
foster
Taking a stab in the dark, but maybe there are 2 container divs and there shouldn't be?
You should post the code for your header.php and page type (like default.php) or whatever you are using there. If the second nav is not content entered into a block, It's got to be coming from somewhere in header.php or default.php, right?

Hope this gets you on the road to a solution...
TMDesigns replied on at Permalink Reply
TMDesigns
This is the header
<?php   
defined('C5_EXECUTE') or die(_("Access Denied."));
/**
 * @ concrete5 package Bootstrap
 * @copyright  Copyright (c) 2012 Hostco. (http://www.hostco.com)
http://www.concrete5.org/marketplace/themes/bootstrap/license/...
 */
$html = Loader::helper('html');
$c = Page::getCurrentPage();
$up = new Permissions(Page::getCurrentPage());
$bootstrap_config_arr=$_SESSION['bootstrap_config_arr'];
$version_inc='spacelab';
if($bootstrap_config_arr['cdn_enable']=='0' || $bootstrap_config_arr['cdn_enable']==0 || $bootstrap_config_arr['cdn_enable']==null){
   $dir_rel=DIR_REL;
   $dir_rel=rtrim($dir_rel,'/');


this is hte page type
<?php 
defined('C5_EXECUTE') or die(_("Access Denied."));
/**
 * @ concrete5 package Bootstrap
 * @copyright  Copyright (c) 2012 Hostco. (http://www.hostco.com)
http://www.concrete5.org/marketplace/themes/bootstrap/license/...
 */
//load bootstrap theme config arr and get global $bootstrap_config_arr
$bootstrap_config_arr=$_SESSION['bootstrap_config_arr'];
$version_inc='spacelab';
?>
</head>
<body>
<?php 
$this->inc('inc/'.$version_inc.'/elements/navbar.php');
foster replied on at Permalink Reply
foster
Before doing anything, make sure you have a copy of the current page type. After that, I would try removing lines 29-59 and seeing what happens. Just in case your line numbers are different than mine that code is:
<?php 
$this->inc('inc/'.$version_inc.'/elements/navbar.php');
$a = new Area('Header Image');
$c = Page::getCurrentPage();
if (($a->getTotalBlocksInArea($c) > 0) || ($c->isEditMode()) ) {
?>
<div class="jumbotron masthead">
  <div class="container">
    <?php              
   $a->display($c);
   ?>
  </div>
</div>
<?php  }?>


That might be too much to remove and take away other things too, but I think we are on the right track. Something in there is outputting the content that you don't want to see.

Also, I'm assuming you've cleared the site cache?


If when you delete the above code, both the nav bar you like and nav bar you don't like dissapear, try just removing lines 41-55 and just in case the line numbers are off, I mean this code:
<div class="jumbotron masthead">
  <div class="container">
    <?php              
   $a->display($c);
   ?>
  </div>
</div>
foster replied on at Permalink Reply
foster
Did you ever get this resolved? If so, what was the issue?