blase40 Posted March 8, 2008 Posted March 8, 2008 I have removed the text from below the picture in product_info.php, but I also want to remove the link so that the image is not clickable at all, but I still want the image to display properly. Can somebody please let me know what modifications I need to make to this chunk of code to accomplish this? <td width="7%" class="main"><span class="smallText"><?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], '150', '200', 'hspace="5" vspace="5"') . '</a>'; ?></span></td> <td width="10%" class="main"><br> <p> </p></td> <td width="83%" class="main"><table border="0" cellspacing="0" cellpadding="2"> <tr> <td class="main" colspan="3"><br><br><?php echo TEXT_PRODUCT_OPTIONS; ?></td> </tr> <?php Thanks!
germ Posted March 8, 2008 Posted March 8, 2008 Try changing this code: <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], '150', '200', 'hspace="5" vspace="5"') . '</a>'; ?> To: <?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], '150', '200', 'hspace="5" vspace="5"'); ?> MAKE A BACKUP BEFORE MAKING ANY EDITS!!! If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
blase40 Posted March 8, 2008 Author Posted March 8, 2008 worked like a charm. thanks!! Try changing this code: <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], '150', '200', 'hspace="5" vspace="5"') . '</a>'; ?> To: <?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], '150', '200', 'hspace="5" vspace="5"'); ?> MAKE A BACKUP BEFORE MAKING ANY EDITS!!!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.