Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Remove Category Title


pwatson04

Recommended Posts

Could someone tell me how to remove the category title but not the sub-category title. I would also like to move the image that appears on the right hand corner in the category page to the center and make it larger. How would i go about doing this?

 

Thanks

Link to comment
Share on other sites

Plz can someone help me on this or even give me a step for a hint

It's not clear what you would like to achieve. Give more details.

Link to comment
Share on other sites

right okay. whenever you select a category from the left hand menu, you are presented with a page with a heading and a small picture on the right hand side. what i am wanting to do is get rid of the title and make the image larger and appear in the centre. how would i go about this?

 

thanks

Link to comment
Share on other sites

check your catalog\index.php the heading/image for categories appears few lines after

 

if ($category_depth == 'nested') {

 

shows like:

			<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>
		<td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . $category['categories_image'], $category['categories_name'], HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>

 

so you remove the heading_title line and then you center the categories image. Remove the HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT parameters as they force the image resizing.

Link to comment
Share on other sites

maybe you changed it on another place? There are 3 instances there the heading_title is used to display as the header. For the main page, subcategories and categories with products. If you view a category that only has products then you repeat the same process inside the

 

} elseif ($category_depth == 'products' || isset($HTTP_GET_VARS['manufacturers_id'])) {

 

case. further down you will see

 

	<td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr>
	<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
	  <tr>
		<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...