Jump to content

help changing span in productlist.tpl file


peanut

Recommended Posts

Hi

 

I'm trying to change the span class of the product list tpl file however the change doesn't reflect. I have a span class called new which displays on the product list page for new products, I created similar code to display 'sold out' and 'last one' for those conditions however I'm unable to use a different span class for them & have to use the same span class as new for it to work.

 

Basically I want the colour to be different for these three things, right now they share the same colour due to the same span class. I added a new span class in global.css & product list.css but it wouldn't work. Attached screenshot.

 

Please check my site here for more detail: http://droppedpin.ne...cts-dropped-pin

 

All help appreciated.

Thanks

post-133792-0-82081500-1353135906_thumb.png

Link to comment
Share on other sites

Hi Vekia

 

Thanks for replying....do you see the orange banner on each product in the image I've attached? I basically want them to be of a different colour for the different labels they have, ie. New, Sold Out and Last One.

 

I wasn't able to change them and they all share the same class currently hence all look like the same orange colour banner.

 

Hope I was clear now! :)

Link to comment
Share on other sites

Hi Vekia

 

Thanks for replying....do you see the orange banner on each product in the image I've attached? I basically want them to be of a different colour for the different labels they have, ie. New, Sold Out and Last One.

 

I wasn't able to change them and they all share the same class currently hence all look like the same orange colour banner.

 

Hope I was clear now! :)

 

yeah, it's clear now :)

 

you must create different class in global css for each label type.

but i've got one question: how you add different labels? in template right?

so, when product is new - add label new (exactly as now)

when product is "last" - for example change the "new" css class to other, like "last"

Link to comment
Share on other sites

yeah, it's clear now :)

 

you must create different class in global css for each label type.

but i've got one question: how you add different labels? in template right?

so, when product is new - add label new (exactly as now)

when product is "last" - for example change the "new" css class to other, like "last"

 

 

I did that and it didn't change instead it ended up messing up the layout of the products. Yes they are in the template files. So I added both in global css & product list css, it did not work :(

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...