![]() |
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. |
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. |
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. |
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> |
All times are GMT -8. The time now is 05:13 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.