Forums / Templates, Stylesheets, Page Layout / removing top nav bar in different template

removing top nav bar in different template

Locked

Views: 1,253

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
5 Dec 2008, 9:39 PM
#1
spikeycactus avatar

spikeycactus

New Zenner

Join Date:
Sep 2008
Posts:
72
Plugin Contributions:
0

removing top nav bar in different template

Hello i have downloaded a template that is very different from the classic ones. im having trouble getting rid of the nav bar at the top.
I have looked in tpl_header.php and there is no navmain tags at all.
any ideas where it could be situated?
I have attached images of the folders for this template for you to have a look at and get an idea of what the template consists of.
If any files look promising please let me know, i have no idea whats what.
Thanks!

5 Dec 2008, 10:13 PM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: removing top nav bar in different template

There is no way that we can tell what changes have been made to these files by looking at directory listings of them.

What we can say is that this is probably a bad template. It's often necessary to change some of the template files to change how a template works, but all of them? can't say for sure, but this is a strong indication that the author didn't understand the over-ride system.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

5 Dec 2008, 10:33 PM
#3
spikeycactus avatar

spikeycactus

New Zenner

Join Date:
Sep 2008
Posts:
72
Plugin Contributions:
0

Re: removing top nav bar in different template

oh i see, if i added #navMain {display:none} to tpl_header.php
would it understand it?
Is there not a way of manually altering it?
thanks

5 Dec 2008, 10:48 PM
#4
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: removing top nav bar in different template

Unlikely. That's a PHP file and doesn't speak CSS - that should be in the stylesheet. But since I'm not familar with the template and how it works, I can't know whether it will have any effect at all.

Also by using a display:none you risk being penalised by search engines if they deem this to be hidden text.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

5 Dec 2008, 11:02 PM
#5
spikeycactus avatar

spikeycactus

New Zenner

Join Date:
Sep 2008
Posts:
72
Plugin Contributions:
0

Re: removing top nav bar in different template

Ok ive looked in the stylesheet and found the css code which i have deleted, but now i still get the text for the catagories along the top, but this time their is no background.
Any idea of what to delete css code wise which might remove the text too?
I had a feeeling this might happen, css is just the way the page looks am i correct? if this is the case it must be a php file i have to edit.
any ideas?
thanks

5 Dec 2008, 11:05 PM
#6
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: removing top nav bar in different template

You can't delete text from a site in your stylesheet, only style it or hide it. To truly remove it, you need to find where it is being generated. I'm surprised that it's not the tpl_header. Maybe the Admin > Tools > Developers Toolkit can help you to find it.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

5 Dec 2008, 11:19 PM
#7
spikeycactus avatar

spikeycactus

New Zenner

Join Date:
Sep 2008
Posts:
72
Plugin Contributions:
0

Re: removing top nav bar in different template

ive had a quick scan through my tpl_header again.
Would you mind having a look at it for me?

<?php
/**
 * Common Template - tpl_header.php
 *
 * this file can be copied to /templates/your_template_dir/pagename<br />
 * example: to override the privacy page<br />
 * make a directory /templates/my_template/privacy<br />
 * copy /templates/templates_defaults/common/tpl_footer.php to /templates/my_template/privacy/tpl_header.php<br />
 * to override the global settings and turn off the footer un-comment the following line:<br />
 * <br />
 * $flag_disable_header = true;<br />
 *
 * @package templateSystem
 * @copyright Copyright 2003-2006 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: tpl_header.php 3192 2006-03-15 22:37:24Z wilt $
 */
// Display all header alerts via messageStack:
if ($messageStack->size('header') > 0) {
  echo $messageStack->output('header');
}
?>
<?php
if (!isset($flag_disable_header) || $flag_disable_header == false) {

?>
<!--[if IE]>
<link href="<?=DIR_WS_TEMPLATE?>css_ie/style_ie.css" rel="stylesheet" type="text/css">
<![endif]-->
<!--header1 -->
				<div class="dt header1" >
					<div class="dr">
						<div class="dc header1_c1" ><a href="<?=zen_href_link(FILENAME_DEFAULT)?>"><?=zen_image(DIR_WS_TEMPLATE.'images/logo.jpg','','','','style="margin-left:48px; "')?></a><br>
						</div>
						<div class="dc header1_v_l" ></div>
						<div class="dc header1_c2" >
							<span class="header1_text">Choose your language:</span><?

  if (!isset($lng) || (isset($lng) && !is_object($lng))) {
    $lng = new language;
  }

  reset($lng->catalog_languages);

  while (list($key, $value) = each($lng->catalog_languages)) {
    echo '<a href="' . zen_href_link($_GET['main_page'], zen_get_all_get_params(array('language', 'currency')) . 'language=' . $key, $request_type) . '">' . zen_image(DIR_WS_LANGUAGES.$value['directory'].'/images/'.$value['image'], $value['name'], '', '', 'style="margin:0px 0px 0px 8px;vertical-align:middle;"') . '</a>';
  }

?><br>
							<br style="line-height:18px;">
							<span class="header1_text">Currencies:</span><?=zen_image(DIR_WS_TEMPLATE.'images/spacer.gif','','10px','1px')?><!-- Currencies -->

<?=zen_draw_form('currencies', zen_href_link(basename(ereg_replace('.php','', $PHP_SELF)), '', $request_type, false), 'get')?>

<?

    if (isset($currencies) && is_object($currencies)) {

      reset($currencies->currencies);
      $currencies_array = array();
      while (list($key, $value) = each($currencies->currencies)) {
        $currencies_array[] = array('id' => $key, 'text' => $value['title']);
      }

      $hidden_get_variables = '';
      reset($_GET);
      while (list($key, $value) = each($_GET)) {
        if ( ($key != 'currency') && ($key != zen_session_name()) && ($key != 'x') && ($key != 'y') ) {
          $hidden_get_variables .= zen_draw_hidden_field($key, $value);
        }
      }
    }

?>

        <?=zen_draw_pull_down_menu('currency', $currencies_array, $_SESSION['currency'], 'class="header1_sel" onchange="this.form.submit();"') . $hidden_get_variables . zen_hide_session_id()?>
</form>
<!-- End Currencies --><br>
						</div>
						<div class="dc header1_c3" ></div>
						<div class="dc header1_v_l" ></div>
						<div class="dc header1_c4" ></div>
						<div class="dc header1_c5" >
							<ul class="ul1" >
								<li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT); ?>">My Account</a></li>          
<li><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>">Shopping Cart</a></li>    <?php     
if (DEFINE_PRIVACY_STATUS <= 1) {
    echo '<li><a href="' . zen_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a></li>';
  }
  if (DEFINE_SHIPPINGINFO_STATUS <= 1) {
    echo '<li><a href="' . zen_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a></li>';
  }
  ?>      
							</ul>
						</div>
					</div>
				</div>
				<!--header1 end --><?=zen_image(DIR_WS_TEMPLATE.'images/spacer.gif','','1px','11px')?><br>
				<!--header2 -->
				<div class="dt" >
					<div class="dr">
						<div class="dc header2_c1" ><?=zen_image(DIR_WS_TEMPLATE.'images/spacer.gif','','1px','7px')?><br><?=zen_image(DIR_WS_TEMPLATE.'images/spacer.gif','','12px','1px')?><span class="header1_text">Search:</span><?=zen_image(DIR_WS_TEMPLATE.'images/spacer.gif','','4px','1px')?>
						<?php
echo zen_draw_form('quick_find', zen_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get').zen_draw_hidden_field('main_page',FILENAME_ADVANCED_SEARCH_RESULT);
//zen_draw_hidden_field('search_in_description', '1');
if (strtolower(IMAGE_USE_CSS_BUTTONS) == 'yes') {
    echo zen_draw_input_field('keyword', '', 'class="input1" align="top" value="" onfocus="if (this.value == \'' . HEADER_SEARCH_DEFAULT_TEXT . '\') this.value = \'\';"') .zen_image(DIR_WS_TEMPLATE.'images/spacer.gif','','4px','1px'). zen_image_submit(BUTTON_IMAGE_SEARCH,HEADER_SEARCH_BUTTON);
  } else {
    echo zen_draw_input_field('keyword', '', 'class="input1" align="top" value="" onfocus="if (this.value == \'' . HEADER_SEARCH_DEFAULT_TEXT . '\') this.value = \'\';"') .zen_image(DIR_WS_TEMPLATE.'images/spacer.gif','','4px','1px'). zen_image_submit(BUTTON_IMAGE_SEARCH,HEADER_SEARCH_BUTTON);
  }?><br><?=zen_image(DIR_WS_TEMPLATE.'images/spacer.gif','','1px','1px')?></form></div><div class="dc header2_c2" ><a href="<?=zen_href_link(FILENAME_DEFAULT)?>"><?=zen_image(DIR_WS_TEMPLATE.'images/l1.gif')?></a><a href="<?=zen_href_link(FILENAME_SPECIALS)?>"><?=zen_image(DIR_WS_TEMPLATE.'images/l2.gif')?></a><a href="<?=zen_href_link(FILENAME_PRODUCTS_NEW)?>"><?=zen_image(DIR_WS_TEMPLATE.'images/l3.gif')?></a><a href="index.php?main_page=products_all"><?=zen_image(DIR_WS_TEMPLATE.'images/l4.gif')?></a><a href="<?=zen_href_link(FILENAME_REVIEWS)?>"><?=zen_image(DIR_WS_TEMPLATE.'images/l5.gif')?></a><a href="<?=zen_href_link(FILENAME_CONTACT_US)?>"><?=zen_image(DIR_WS_TEMPLATE.'images/l6.gif')?></a><a href="<?=zen_href_link(FILENAME_GV_FAQ)?>"><?=zen_image(DIR_WS_TEMPLATE.'images/l7.gif')?></a></div></div></div>
  
  <?php
  include('tpl_tmfuncs.php');
  if (isset($_GET['error_message']) && zen_not_null($_GET['error_message'])) {
?>
        <table border="0" width="100%" cellspacing="0" cellpadding="2">
          <tr class="headerError">
            <td class="headerError"><?php echo htmlspecialchars(urldecode($_GET['error_message'])); ?></td>
          </tr>
        </table>
<?php
  }
  if (isset($_GET['info_message']) && zen_not_null($_GET['info_message'])) {
?>
        <table border="0" width="100%" cellspacing="0" cellpadding="2">
          <tr class="headerInfo">
            <td class="headerInfo"><?php echo htmlspecialchars($_GET['info_message']); ?></td>
          </tr>
        </table>
<?php
  }
?>
<?php
}
?>
<!--bof-optional categories tabs navigation display-->
<?php
if (CATEGORIES_TABS_STATUS == '1') {
  require($template->get_template_dir('tpl_modules_categories_tabs.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_categories_tabs.php');
}
?>
<!--eof-optional categories tabs navigation display-->

<!--bof-header ezpage links-->
<?php if (EZPAGES_STATUS_HEADER == '1' or (EZPAGES_STATUS_HEADER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?>
<?php require($template->get_template_dir('tpl_ezpages_bar_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_header.php'); ?>
<?php } ?>
<!--eof-header ezpage links-->

Does EZpages have anything to do with it?
Thanks