X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Stripping the H1 title from the Categories page 4.1 stream (https://forum.x-cart.com/showthread.php?t=61557)

sparrowdog 11-09-2011 08:04 PM

Stripping the H1 title from the Categories page 4.1 stream
 
On http://www.shopnaturally.com.au/organic-times.html, the H1 tag with the leaf and the orange text underneath is coded in by hand in the category description. The ORGANIC TIMES just above the product thumbnails is a part of the template.

I'd like to be able to do 1 of 2 things.

1) Have this sit above the category description
2) Strip it out and just code the H1 in by hand

While I have found that i can strip it out in the dialog.tpl file, this also removes it from every other static page and product on the website, and I don't want that. I just want to remove it from the category page.

I have always thought it a design flaw to have the category description at the top and then the title underneath.

Can anyone point me in the right direction to fix this?

pauldodman 11-10-2011 01:35 AM

Re: Stripping the H1 title from the Categories page 4.1 stream
 
There's a few ways to do this, but something straightforward would be:

take your dialog.tpl file - and copy it, with a new name, e.g. dialog_cat.tpl

Then in dialog_cat.tpl, do the stripping out and changes you want.

Then in the template for that category page, where the "capture" ends, and the dialog template is changed, alter it to call the new _cat file.

Hope that helps.

sparrowdog 11-11-2011 02:17 AM

Re: Stripping the H1 title from the Categories page 4.1 stream
 
Perfect, thank you. For those playing along at home, the necessary code was in the customer/main/subcategories.tpl file.


All times are GMT -8. The time now is 06:13 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.