| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Turn Off Category H1 Title | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() 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. |
|||||||||
#2
|
|||||||||
|
|||||||||
![]() 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. |
|||||||||
#3
|
|||||||||
|
|||||||||
![]() 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. |
|||||||||
#4
|
|||||||||
|
|||||||||
![]() You can use the CSS propetry display:none under certain conditions.
For example to check the category ID in a template like Code:
__________________
Best regards, Igor Pudovkin X-Cart hosting team |
|||||||||
|
|||
X-Cart forums © 2001-2020
|