Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Stripping the H1 title from the Categories page 4.1 stream

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-09-2011, 08:04 PM
 
sparrowdog sparrowdog is offline
 

eXpert
  
Join Date: Jan 2007
Posts: 244
 

Default 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?
__________________
Version 4.1.6 to 4.1.11
Reply With Quote
  #2  
Old 11-10-2011, 01:35 AM
  pauldodman's Avatar 
pauldodman pauldodman is offline
 

X-Guru
  
Join Date: Jul 2003
Location: Spain / UK
Posts: 3,062
 

Default 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.
__________________
Paul Dodman
e-business & m-commerce consultant
w: www.luminointernet.com
e: xcart@luminointernet.com

Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart.
Reply With Quote
  #3  
Old 11-11-2011, 02:17 AM
 
sparrowdog sparrowdog is offline
 

eXpert
  
Join Date: Jan 2007
Posts: 244
 

Default 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.
__________________
Version 4.1.6 to 4.1.11
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

   

 
X-Cart forums © 2001-2020