Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

My Menu


Jonathan_R

Recommended Posts

I have a template which I am trying to get my menu to change be a square instead of a row up and down. As you can see from visiting my site I can not even see all of my list on the bottom. What code or file to I have to edit for me to change the way the drop down menu is setup up. Thanks in advance for your help. Before everyone bashes me I have tried to look on the forum for this answer. Go to ..www redsquareelectronics . com to view what i am talking about.

 

Thanks

_______________________________________________________________

Bill Gates is a very rich man today... and do you want to know why? The answer is one word: versions.

Link to comment
Share on other sites

Jonathan,

 

 

Since all templates vary by creator, it is impossible to tell you precisely what code you need to change. However, you should look at the /includes/header.php and the /includes/template_top.php files to make the changes.

 

 

 

Chris

Link to comment
Share on other sites

Thank you for your response. I will do that and let you know how it works out.

_______________________________________________________________

Bill Gates is a very rich man today... and do you want to know why? The answer is one word: versions.

Link to comment
Share on other sites

DunWeb,

 

I took a look into those two files, I didn't see anything that controls the menu in header.php. Now I think i did find something within the template_top.php. I'll post the code beneath. I keep on seeing code about jquery? I think this is a javascript if I am correct. The problem is I am not very good with it. I like the way the menus and settings are but like I said i want to change it so the menu goes width wise not length. Thanks again for your assistance.

 

<?php
/*
 $Id$
 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com
 Copyright (c) 2010 osCommerce
 Released under the GNU General Public License
*/
 $oscTemplate->buildBlocks();
 if (!$oscTemplate->hasBlocks('boxes_column_left')) {
   $oscTemplate->setGridContentWidth($oscTemplate->getGridContentWidth() + $oscTemplate->getGridColumnWidth());
 }
 if (!$oscTemplate->hasBlocks('boxes_column_right')) {
   $oscTemplate->setGridContentWidth($oscTemplate->getGridContentWidth() + $oscTemplate->getGridColumnWidth());
 }
?>
<!DOCTYPE html>
<html <?php echo HTML_PARAMS; ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>" />
<title><?php echo tep_output_string_protected($oscTemplate->getTitle()); ?></title>
<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>" />
<link rel="stylesheet" type="text/css" href="ext/jquery/ui/redmond/jquery-ui-1.8.6-osc.css" />
<script type="text/javascript" src="ext/jquery/jquery-1.4.3.min.js"></script>
<!--  -->
<script type="text/javascript" src="ext/jquery/ui/jquery-ui-1.8.6.min.js"></script>
<?php
 if (tep_not_null(JQUERY_DATEPICKER_I18N_CODE)) {
?>
<script type="text/javascript" src="ext/jquery/ui/i18n/jquery.ui.datepicker-<?php echo JQUERY_DATEPICKER_I18N_CODE; ?>.js"></script>
<script type="text/javascript">
$.datepicker.setDefaults($.datepicker.regional['<?php echo JQUERY_DATEPICKER_I18N_CODE; ?>']);
</script>
<?php
 }
?>
<script type="text/javascript" src="ext/jquery/bxGallery/jquery.bxGallery.1.1.min.js"></script>
<link rel="stylesheet" type="text/css" href="ext/jquery/fancybox/jquery.fancybox-1.3.4.css" />
<script type="text/javascript" src="ext/jquery/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
<script type="text/javascript" src="ext/jquery/jquery.equalheights.js"></script>
<script type="text/javascript" src="ext/jquery/jquery.nivo.slider.js"></script>
<script type="text/javascript" src="ext/js/hoverIntent.js"></script>
<script type="text/javascript" src="ext/js/superfish.js"></script>
<link rel="stylesheet" type="text/css" href="ext/960gs/<?php echo ((stripos(HTML_PARAMS, 'dir="rtl"') !== false) ? 'rtl_' : ''); ?>940_12_col.css" />
<link rel="stylesheet" type="text/css" href="css/stylesheet.css" />
<link rel="stylesheet" type="text/css" href="css/constants.css" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<link rel="stylesheet" type="text/css" href="css/style_boxes.css">
<link rel="stylesheet" type="text/css" href="css/css3.css">
<link rel="stylesheet" type="text/css" href="css/buttons.css">
<link rel="stylesheet" type="text/css" href="css/nivo-slider.css">
<link rel="stylesheet" type="text/css" media="screen" href="css/superfish.css" />
<link rel="stylesheet" media="screen" href="css/superfish-navbar.css" />
<link href='http://fonts.googleapis.com/css?family=Maven+Pro:700' rel='stylesheet' type='text/css'>
<script type="text/javascript" src="ext/js/js.js"></script>
<script>
$(document).ready(function(){
$('.sf-menu').superfish({
   delay:	   1000,
   animation:   {opacity:'show',height:'show'},
   speed:	   'fast',
   autoArrows:  true,
   dropShadows: true
  });
});
</script>
<!--[if lt IE 9]>
<style type="text/css">
.cart_products_options,
.contentPadd.txtPage,
.ui-dialog,
.ui-dialog-titlebar,
.cart,
.ui-progressbar,
.ui-datepicker,

.contentInfoText.un,
.contentInfoBlock,
.cart_products_options,
.row_7 CHECKBOX, .row_7 INPUT, .row_7 RADIO, .row_7 select, .row_7 textarea,
.fieldValue  input, .go, .input,
.contentPadd h3,
.cart th.th1,
.contentInfoText,
.contentPadd h3,
.cart th.th3,
.infoBoxWrapper.box2,
.title-b,
.title-t,
.row_4,
.infoBoxContents .price_padd,
.result2_bottom,
.result1_bottom
  { behavior:url(<?php echo DIR_WS_CATALOG. 'ext/pie/PIE.php'?>)}
</style>
<![endif]-->
<!--[if lt IE 7]> <div style=' clear: both; height: 59px; padding:0 15px 0 15px; position: relative; text-align:center;'> <a href="http://www.microsoft.com/windows/internet-explorer/default.aspx?ocid=ie6_countdown_bannercode"><img src="http://www.theie6countdown.com/images/upgrade.jpg" border="0" height="42" width="820" alt="You are using an outdated browser. For a faster, safer browsing experience, upgrade for free today." /></a></div> <![endif]-->
<?php echo $oscTemplate->getBlocks('header_tags'); ?>
</head>
<body>
<div  class="padd_bottom">
<div class="row_1 ofh">
 <?php require(DIR_WS_INCLUDES . 'header.php'); ?>
</div>
<div class="wrapper-padd">
<!--Superfish Horizontal Navigation bar-->
<div class="nav_main">
 <div class="cat_navbar">
   <?php
if ( file_exists(DIR_WS_MODULES.'cat_navbar.php') ) {
require(DIR_WS_MODULES.'cat_navbar.php');
}
?>
 </div>
</div>
<!--end Superfish-->
<?php
	    if (($oscTemplate->hasBlocks('box_content_set'))) {
?>
<?php echo $oscTemplate->getBlocks('box_content_set'); ?>
<?php
  }
?>
<?php
    if (($oscTemplate->hasBlocks('box_content_set_banner'))) {
?>
<?php echo $oscTemplate->getBlocks('box_content_set_banner'); ?>
<?php
  }
?>
<?php require(DIR_WS_INCLUDES . 'extra_row.php');?>
<div class="row_3 ofh">
<div class="container_<?php echo $oscTemplate->getGridContainerWidth(); ?>">
<div id="bodyContent" class="grid_<?php echo $oscTemplate->getGridContentWidth(); ?> <?php echo ($oscTemplate->hasBlocks('boxes_column_left') ? 'push_' . $oscTemplate->getGridColumnWidth() : ''); ?> ">
<div id="fb-root"></div>
<script>(function(d, s, id) {
 var js, fjs = d.getElementsByTagName(s)[0];
 if (d.getElementById(id)) {return;}
 js = d.createElement(s); js.id = id;
 js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
 fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

_______________________________________________________________

Bill Gates is a very rich man today... and do you want to know why? The answer is one word: versions.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...