Jump to content

Welcome, Guest!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Fernando

Hide page heading, but only on one page

Recommended Posts

Hello,

I would like to hide the heading of one of my categories, only when viewing this category page.

How do I find / target just this page?

guessing the custom code would be

????? .cat-name {display:none;}

Thanks

Share this post


Link to post
Share on other sites

u sure can, just edit category.tpl a use someting like this (my way of doing this) 

{if $smarty.get.id_category==1}
spec code for cat. with id 1
{elseif $smarty.get.id_category==2}
spec code for cat. with id 2     
{else}   
default heading
{/if}             

Share this post


Link to post
Share on other sites

@Fernando In custom CSS I would go with:

body.category-{id_category} .category-info { display: none;}

.category-info will hide h1 and description

.page-heading.product-listing would hide only h1

  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...