Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to alter banner link


LisaT

Recommended Posts

I have a banner on my home page that links to a page within the same web site. I would like this to open in the same browser window. If I view source from my browser I see that this link is set to "target=blank", but where is this html code generated, and how do I change it?

See Get the gift and click on the Xmas banner

Link to comment
Share on other sites

Hello Lisa, the tep_display_banner function I believe controls what you want. Now the execution path for the banner goes through the footer.php from where the tep_display_banner function is called. The function itself is located in the includes\functions\banner.php. Within the function there is this line

$banner_string = '<a href="' . tep_href_link(FILENAME_REDIRECT, 'action=banner&goto=' . $banner['banners_id']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $banner['banners_image'], $banner['banners_title']) . '</a>';

so now you have your blank field to remove if you need to.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...