Jump to content

[solved] PS 1.6 - changing the product header image according to the category


Recommended Posts

hello,

 

as proposed in this topic I was able to customise the header image for the category page, adding

<header id="header" {if $smarty.get.id_category} class="cat{$smarty.get.id_category}"{/if}>

to header.tpl, and

.catxx {background: #000 url(../img/headerxx.jpg) center no-repeat;  }

to global.css (where xx is the category id).

 

but this displays the right image only for the categories, not for the product page, and the proposed solution only gives me a blank page :

<div id="header"{if $smarty.get.id_category OR $product->id_category_default} class="cat{if $smarty.get.id_category}{$smarty.get.id_category}{else}{$product->id_category_default}"{/if}>

it may come from the fact that the hack is from 2010, and not working for 1.6.

 

or from the fact that I am missing something...

 

any idea ?

 

thanx !

Edited by damien3000 (see edit history)
Link to comment
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...