Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Removing category images/text links


DABarton

Recommended Posts

Posted

I don't want my shop full of links that have both images and text, is there any way I can have just images or just text for category links?

Posted

http://www.w3schools.com/html/html_links.asp explains how to set new links like this.

 

Just need to edit the links you want to change to use one style or the other.

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Posted

Hmmm... That's not what I was after. I need to know which file to edit, and where to edit it so that the links for categories will appear as either an image or a text link, not both.

Posted

I don't know if this is what you are referring to. Make sure to backup your file.

 

In catalog/index.php find

	  echo '				<td align="center" class="smallText" width="' . $width . '" valign="top"><a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . tep_image(DIR_WS_IMAGES . $categories['categories_image'], $categories['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '<br>' . $categories['categories_name'] . '</a></td>' . "\n";

If you only want image links change to

	  echo '				<td align="center" class="smallText" width="' . $width . '" valign="top"><a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . tep_image(DIR_WS_IMAGES . $categories['categories_image'], $categories['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) /*. '<br>' . $categories['categories_name']*/ . '</a></td>' . "\n";

If you only want text links change to

	  echo '				<td align="center" class="smallText" width="' . $width . '" valign="top"><a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">' /*. tep_image(DIR_WS_IMAGES . $categories['categories_image'], $categories['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '<br>'*/ . $categories['categories_name'] . '</a></td>' . "\n";

Posted
I don't know if this is what you are referring to. Make sure to backup your file.

 

In catalog/index.php find

	  echo '				<td align="center" class="smallText" width="' . $width . '" valign="top"><a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . tep_image(DIR_WS_IMAGES . $categories['categories_image'], $categories['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '<br>' . $categories['categories_name'] . '</a></td>' . "\n";

If you only want image links change to

	  echo '				<td align="center" class="smallText" width="' . $width . '" valign="top"><a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . tep_image(DIR_WS_IMAGES . $categories['categories_image'], $categories['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) /*. '<br>' . $categories['categories_name']*/ . '</a></td>' . "\n";

If you only want text links change to

	  echo '				<td align="center" class="smallText" width="' . $width . '" valign="top"><a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">' /*. tep_image(DIR_WS_IMAGES . $categories['categories_image'], $categories['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '<br>'*/ . $categories['categories_name'] . '</a></td>' . "\n";

 

Ah, cheers dude, works like a charm! :D

Archived

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

×
×
  • Create New...