ignatius Posted January 6, 2004 Share Posted January 6, 2004 Does anyone know how to make it so when someone clicks on the banner, to load the new url in the current browser instead of opening another browser? I am trying to use the banner to link to other areas in the site and it doesnt make sense to load up another browser. Thanks Link to comment Share on other sites More sharing options...
Guest Posted January 6, 2004 Share Posted January 6, 2004 take a look at the code, it probably has _blank in the line with the url, that is what makes another browser open Link to comment Share on other sites More sharing options...
ignatius Posted January 6, 2004 Author Share Posted January 6, 2004 Thanks!! That did exactly what i was looking for. under ../catalog/includes/functions/banner.php replace $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>'; with $banner_string = '<a href="' . tep_href_link(FILENAME_REDIRECT, 'action=banner&goto=' . $banner['banners_id']) . '" target="_self">' . tep_image(DIR_WS_IMAGES . $banner['banners_image'], $banner['banners_title']) . '</a>'; Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.