Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

logo on the top of the homepage


brocky

Recommended Posts

Posted

i have changed the logo on the top of my homepage from oscommerce to something else but its stuck on the top right hand side of the front page. How do i get it to be alligned to the centre of the page?

 

Thanks, Chris.

Posted
i have changed the logo on the top of my homepage from oscommerce to something else but its stuck on the top right hand side of the front page. How do i get it to be alligned to the centre of the page?

 

Thanks, Chris.

I can't help you with centreing it (yet :rolleyes: ) but I would be very interested in how you changed it as I've been trying to do just that on my test site.

Posted
I can't help you with centreing it (yet :rolleyes: ) but I would be very interested in how you changed it as I've been trying to do just that on my test site.

 

i don't know how to do that either unfortunatley my host did it for me, sorry. I think its under tools and then banner manager though, but i've looked under there and can't make out how you change it.

Posted
i don't know how to do that either unfortunatley my host did it for me, sorry. I think its under tools and then banner manager though, but i've looked under there and can't make out how you change it.

Poo :rolleyes:

Posted

The easiest way is to save your logo as oscommerce.gif and replace it with the existing one in /images/oscommerce.gif.

 

If you want to change the name you will have to edit the /includes/header.php. Find the part that says oscommerce.gif and change it to your name.

Other great Open Source (Free) programs: (Free as in free speech not free beer)

The Gimp - An image program. | Firefox - All you have to do is add the Web Developer add-on to make this web browser complete. | FileZilla - An ftp program. | Inkscape - A good program to create images with. | Thunderbird - An email program. | Openoffice.org - An office suite that is compatible with MS Office. | Abiword - Another office suite. | Audacity - A sound recording tool. | ddp's Picks | Wordpress - An easy to use blogging software. | Joomla - An easy to use CMS that has ecommerce plug-ins. | Drupal - Another CMS

How do I find these programs? Google Search!

Posted

o.k. thanks, but how do i get the logo so its in the centre of the page, instead of it being at the right?

Posted
can n e 1 help me please?

The way I did it was to edit out the frame that has the three icons to the right of the logo (For me these are redundant anyway as they are simply replicating the 'My Account' 'Cart Contents' and 'Checkout' Underneath them) which then gave me the full width across the top to play with. I edited the the logo from left justified to central and bingo.

Posted
The way I did it was to edit out the frame that has the three icons to the right of the logo (For me these are redundant anyway as they are simply replicating the 'My Account' 'Cart Contents' and 'Checkout' Underneath them) which then gave me the full width across the top to play with. I edited the the logo from left justified to central and bingo.

 

o.k. thaks. But how did you do that? I have no clue how to do what you just said.

Posted

Try this.

 

In catalog/includes/header.php, change ...

 

<td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'osCommerce') . '</a>'; ?></td>

to ...

 

<td valign="middle" align="center"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'osCommerce') . '</a>'; ?></td>

Posted
The way I did it was to edit out the frame that has the three icons to the right of the logo (For me these are redundant anyway as they are simply replicating the 'My Account' 'Cart Contents' and 'Checkout' Underneath them) which then gave me the full width across the top to play with. I edited the the logo from left justified to central and bingo.

I also would like to dispose of the 3 icons. How do I go about it?

Posted

I'm in the same boat as you as to the header logo. I got it changed to the name I want but the pic didn't appear. But I did find in the same area where you can take the other little icons out. Only thing is, is that I don't know how much to take out. I took out the picture (gif) but it just left a box with an x in it. I'm a bit scared to take out something I know nothing about.

 

Jenny

Posted

The default banner and images in includes/header.php can be found here

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

<tr class="header">

<td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'osCommerce') . '</a>'; ?></td>

<td align="right" valign="bottom"><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_account.gif', HEADER_TITLE_MY_ACCOUNT) . '</a>??<a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '">' . tep_image(DIR_WS_IMAGES . 'header_cart.gif', HEADER_TITLE_CART_CONTENTS) . '</a>??<a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_checkout.gif', HEADER_TITLE_CHECKOUT) . '</a>'; ?>??</td>

</tr>

</table>

To change it to have banner image in center u can define a seperate row like this (note: how I made the banner to be on a new row...which would push your 3 navigation images into a new row)

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

<tr class="header">

<td valign="middle" align="center"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'osCommerce') . '</a>'; ?></td>

</tr>

<tr class="header">

<td align="right" valign="bottom"><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_account.gif', HEADER_TITLE_MY_ACCOUNT) . '</a>??<a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '">' . tep_image(DIR_WS_IMAGES . 'header_cart.gif', HEADER_TITLE_CART_CONTENTS) . '</a>??<a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_checkout.gif', HEADER_TITLE_CHECKOUT) . '</a>'; ?>??</td>

</tr>

</table>

Also as for Jenny's problem...to remove the 3 images and just have the banner on top you could use

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

<tr class="header">

<td valign="middle" align="center"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'osCommerce') . '</a>'; ?></td>

</tr>

</table>

You should change the name from oscommerce.gif to whatever your banner image name is!!!!

 

Hope it helps

Simple Add-ons Please add simple plain tips here for others.
Posted
Hello,

 

You can find some flash tutorials at the following website on how to customize the header section of osCommerce (e.g. dispose of the 3 icons, etc...). Please visit:

 

http://oscommerce-template-easy.com/oscomm...der-section.htm

 

Best regards

 

 

 

Now that is a real help. That flash tutorial and all the others would save a whole lot of problems for all newbies. I didn't know it existed. Thanks so much for putting this link up.

 

Much Appreciated

 

Jenny

Archived

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

×
×
  • Create New...