Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Navigational Header, infobox Header and footer bars


iceDonkey

Recommended Posts

Hello all,

 

I am new to OSC and I am looking forward to working with this cart and contributing in the forums.

 

I've managed to successfully install OSC on a windows server and changed the colours of the site and a few other things with many hours of reading the forums.

 

However, I haven't been able to locate how to change the thickness of navigational header bar, infobox bars and the footer bar. I've come across posts` where people are talking about them but haven't located how to change them. I've also searched through the code of a few files and haven't come across anything meaningful.

 

 

Any help would be appreciated.

 

Cheers,

 

Ice

SEO
Link to comment
Share on other sites

Check the catalog/stylesheet.css file. ;)

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Link to comment
Share on other sites

Check the catalog/stylesheet.css file. ;)

 

When I did look I could find how to change the colours and font size but not the bar size. I adjusted everything related to size and come up with nothing. I'll take another look though as obviously I've missed something.

 

Thanks,

 

Ice

SEO
Link to comment
Share on other sites

Header bar: Find the following in includes/header.php (around line 64) and add a height definition (in red) where the number = the pixel height you desire:

<table border="0" width="100%" height="20" cellspacing="0" cellpadding="1">

<tr class="headerNavigation">

<td class="headerNavigation">  <?php echo $breadcrumb->trail(' » '); ?></td>

<td align="right" class="headerNavigation"><?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a>  |  <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a>  |  <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a>  |  <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a>   </td>

</tr>

</table>

Footer - Find this part at the beginning of the includes/footer.php and add height in pixels you want:

<table border="0" width="100%" height="20' cellspacing="0" cellpadding="1">

<tr class="footer">

<td class="footer">  <?php echo strftime(DATE_FORMAT_LONG); ?>  </td>

<td align="right" class="footer">  <?php echo $counter_now . ' ' . FOOTER_TEXT_REQUESTS_SINCE . ' ' . $counter_startdate_formatted; ?>  </td>

</tr>

</table>

Infobox header - find the following in includes/classes/boxes.php (around line 148) and change the height value to whatever you want (in red):

class contentBoxHeading extends tableBox {

function contentBoxHeading($contents) {

$this->table_width = '100%';

$this->table_cellpadding = '0';

 

$info_box_contents = array();

$info_box_contents[] = array(array('params' => 'height="14" class="infoBoxHeading"',

'text' => tep_image(DIR_WS_IMAGES . 'infobox/corner_left.gif')),

array('params' => 'height="14" class="infoBoxHeading" width="100%"',

'text' => $contents[0]['text']),

array('params' => 'height="14" class="infoBoxHeading"',

'text' => tep_image(DIR_WS_IMAGES . 'infobox/corner_right_left.gif')));

Link to comment
Share on other sites

Ah, I misunderstood the "bar" that was being referred to. It was the table row. My bad.

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...