![]() |
Catagory Subheader removal
Hello, a quick question :) Lets say we have a catagory called "TestCatagory" in my "Teststore". When you go to that catagory (frontend) it builds the following screen:
Teststore :: TestCatagory TestCatagory // <---- This is what i want removed |-------------------------------------------- | PRODUCTS Sort by: blabla |-------------------------------------------- | | | Basically I see no point in having the top navigation line (which is good) and then have the current catagory name again below it just above the product table.... As the current catagory can be read from the top nav line anway and it looks weird having the same name double all the time... (and wastes space). How can I remove this line ? Which .tlp file do I need to edit ? Thanks! |
Re: Catagory Subheader removal
What you are referring to is the "title". The problem is, it shows up on all pages, not just in your categories.
Open skin1/customer/main/subcategories.tpl for editing and find .. {include file="dialog.tpl" title=$current_category.category content=$smarty.capture.dialog extra='width="100%"'} Change it to... {include file="dialog.tpl" content=$smarty.capture.dialog extra='width="100%"'} Save and upload. This should make it not display the title. If the title still shows up then the next easiest way to achieve what you want is to make a copy of skin1/dialog.tpl named dialog-blank.tpl (I use "-" instead of "_" so I will know I made it and it is not a x-cart default file). Then, in dialog-blank.tpl find where it says... <tr> <td class="DialogTitle">{$title}</td> </tr> and comment it out so it looks like this... {* <tr> <td class="DialogTitle">{$title}</td> </tr> *} Save it, then upload to skin1/dialog-blank.tpl. Re-open skin1/customer/main/subcategories.tpl for editing and find where you edited... {include file="dialog.tpl" title=$current_category.category content=$smarty.capture.dialog extra='width="100%"'} Change it to... {include file="dialog-blank.tpl" content=$smarty.capture.dialog extra='width="100%"'} Save and upload. |
Re: Catagory Subheader removal
Tried both methods mentioned, neither work. I am using X-cart 4.2 and my subcategories.tpl file is a little different then what you mentioned, in mine i orignally had:
{include file="customer/dialog.tpl" title=$lng.lbl_products content=`$smarty.capture.dialog` products_sort_url="home.php?cat=`$cat`&"} and changed that into: {include file="customer/dialog.tpl" content=`$smarty.capture.dialog` products_sort_url="home.php?cat=`$cat`&"} The other file was the same as what you mentioned. But commenting out the lines there in combination with the changes i mention above don't erase the title. |
Re: Catagory Subheader removal
Please update your signature so that we don't waste our time supplying an answer that doesn't apply to your version.
|
Re: Catagory Subheader removal
Well I didn't even touch my signature, the forum itself added that there, wouldn't even know how to change it :) Was already wondering though why it added that version as mine was different but figured it had its reasons.
EDIT: Found where to change it :) Should be okay now, no idea where that sig came from though as againI did not manually add it.. sorry if it caused confusion at any rate. If anyone know how to remove the title in 4.2 thanks. |
Re: Catagory Subheader removal
OK, for 4.2 in skin1/customer/main/subcategories.tpl (it is different) find and comment out..
<h1 class="category">{$current_category.category}</h1> or depending how you have your store set up.... <img class="subcategory-image" src="{$current_category.icon_url|amp}" alt="{$current_category.category|escape}"{if $current_category.image_x} width="{$current_category.image_x}"{/if}{if $current_category.image_y} height="{$current_category.image_y}"{/if} /> |
All times are GMT -8. The time now is 03:27 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.