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

Turn Off Category H1 Title

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-24-2015, 07:41 AM
  hoosierglass's Avatar 
hoosierglass hoosierglass is offline
 

X-Adept
  
Join Date: Aug 2006
Location: Zionsville, IN
Posts: 974
 

Default Turn Off Category H1 Title

I have one category that I do not want the h1 title vsible. I would prefer that it is there just not visible. Is there an if statement or a css change that I can do so that the h1 for a specific category is white?

This way every category but one would use the standard h1 and the specific category would use another.
__________________
X-Cart Gold 4.7.7
Custom Work from www.luminointernet.com
www.indy-pen-dance.com
Reply With Quote
  #2  
Old 11-24-2015, 10:08 AM
  hoosierglass's Avatar 
hoosierglass hoosierglass is offline
 

X-Adept
  
Join Date: Aug 2006
Location: Zionsville, IN
Posts: 974
 

Default Re: Turn Off Category H1 Title

I am guessing it is going to be something like:

{if catid=##} <img src=“http://www.image_address.jpg” alt=“”> Else <h1>{$current_category.category|amp}</h1> {/if}

This way I can use an image to go over the h1 title tags location.
__________________
X-Cart Gold 4.7.7
Custom Work from www.luminointernet.com
www.indy-pen-dance.com
Reply With Quote
  #3  
Old 11-25-2015, 07:57 AM
  hoosierglass's Avatar 
hoosierglass hoosierglass is offline
 

X-Adept
  
Join Date: Aug 2006
Location: Zionsville, IN
Posts: 974
 

Default Re: Turn Off Category H1 Title

I found a work around for what I wanted to do and am posting in case someone wants to use this in their cart.

{if $current_category.categoryid eq "xx"}
<h1>Your Category Title</h1><div style="height: 1px;">
<img style="position: relative; top: -54px;" width="715" height="150" src="http://www.image_location.com/images/title_image.jpg" alt="">
</div>
{else}
<h1>{$current_category.category|amp}</h1>
{/if}

This puts the image right over the top of the category title so that you still have the h1 tags.

I also had to use the same if/else to position the customer/dialog.tpl line. My image was too tall and placed this line in the middle of the image.
__________________
X-Cart Gold 4.7.7
Custom Work from www.luminointernet.com
www.indy-pen-dance.com
Reply With Quote
  #4  
Old 11-26-2015, 04:55 AM
  razortw's Avatar 
razortw razortw is offline
 

X-Cart team
  
Join Date: Feb 2015
Posts: 807
 

Default Re: Turn Off Category H1 Title

You can use the CSS propetry display:none under certain conditions.
For example to check the category ID in a template like

Code:
<h1 {if $current_category.categoryid eq "xx"}style="display:none;"{/if}>Your Category Title</h1>
__________________
Best regards,
Igor Pudovkin
X-Cart hosting team
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 11:28 AM.

   

 
X-Cart forums © 2001-2020