Hi everybody,
I'm new with oscdox and looking for a way to remove the categorie names and images from the mainpage. I've looked everywere but couldn't find anything.
Can anyone help me with this?
Thanks
Frie
www.brasilgospel.nl
This is a discussion on Categories on mainpage within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; Hi everybody, I'm new with oscdox and looking for a way to remove the categorie names and images from the ...
Hi everybody,
I'm new with oscdox and looking for a way to remove the categorie names and images from the mainpage. I've looked everywere but couldn't find anything.
Can anyone help me with this?
Thanks
Frie
www.brasilgospel.nl
Hi Frie
What categories names and images are you talking about? On your site the only thing i can see is the categories box from the left column
If you open a categorie on the left column the sub-categories will be showed on the left column but also on the mainpage...
I want to remove the sub-categories on the mainpage
Go to templates/your template name/content/index_nested.tpl.php
In this file find this line of code: (around line 60)
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";
Add // in front of it so it looks like:
// 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";
This should solve it
Great!!! It worked. Thank you very much!!!
Bookmarks