Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Quick & Stupid Question - Logo Image


Guest

Recommended Posts

Hey all,

With a question like this, you'll instantly recognize my lack of knowledge - it has been some time since I set up my OSC store (and it has been working great, so my forgetfulness is an indication of how well this software works :D )

 

Anyhoooo....

 

I need to change the URL that the main logo image on the homepage points to. Can any one tell me what the file path is for the file I need to modify, and what file it is that I should be looking for?

 

Thanks in advance,

JD

Link to comment
Share on other sites

You mean when you click on the logo you want it to take you to a different page (other than index.php)?

 

If so open catalog/includes/header.php

Look for this line:

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

 

Change FILENAME_DEFAULT to anything you want for example:

 

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

Link to comment
Share on other sites

Cool - thanks...so, could that link point to ANYWHERE like this:

 

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

 

?

 

Thanks

Link to comment
Share on other sites

OK - couldn't figure out how to go back and 'edit' the previous topic on this forum, but I tried the

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

 

thing and it DEFINTITELY did not work.

 

What am I missing here?

Link to comment
Share on other sites

I also tried this:

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

This didn't shut down the whole page (unlike that other thing I tried above,) and the software treats it like a real link, but it brings me to a "error 404: File not found" page.

:huh:

Link to comment
Share on other sites

 <td valign="middle"><a href="http://www.AnywhereOnTheWorldWideWeb.com)"><?php echo tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'osCommerce'); ?></a></td>

 

should do the job

 

dahui

 

modified: sorry missed the echo and http before

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...