Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Main Categories Contribution


Recommended Posts

I'm using the main categories contribution to place all my categories in a box on my main page. It's a useful tool, but I notice the text description is displayed to the right of the category image. This looks a little odd, it really should be centred either above or below the image. I have tried to change the code, without success. Has anyone else managed this?

Link to comment
Share on other sites

I have been working on the same thing and it is a pain to move. If I declare tables I break the cart.

Let mw know if you figure something out and I will do the same

Link to comment
Share on other sites

OK. After a lot of self torture I think I have it.

You will have to make some changes as I use my subcat image for my cat


Here is what I have:

after line 144

$info_box_contents[$row][$col] = array('align' => 'left',

I have

'text' => '<td valign=top width=100><a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new, 'NONSSL') . '">' . tep_image(DIR_WS_IMAGES . $categories['categories_image'], $categories['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '</a></td><td valign=top width=50% class="smallText"><font size=-1><a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new, 'NONSSL') . '"><b>' . $categories['categories_name'] . '</b></a></font><br><font size=-2>' . $text_subcategories </font></td>' );


Hope this helps

Link to comment
Share on other sites

  • 1 month later...

I tried with the modifications you did to your code bluephoenix and it works very well, but I still would like to get rid of the whole text.

Is there anyone who could point me what line of code do I have to delete?

Not that I haven't tried... I removed about the whole page line by line uploading the original file every time... but I don't really have an idea of what am I doing.

I'm a stucked newbie...


Link to comment
Share on other sites

Try this:


    'text' => '<a href="' . tep_href_link

(FILENAME_DEFAULT, $cPath_new, 'NONSSL') . '">' .  tep_image(DIR_WS_IMAGES . $categories['categories_image'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new, 'NONSSL') . '"><b>' . '</b></a><br>' );

Link to comment
Share on other sites

Just about... Perfect!!!

Nothing like knowing what you are doing when a little dot makes such a big difference.

Thank you sooooo much!


Link to comment
Share on other sites


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

  • Create New...