Jump to content

Hide "New " label on products after add them


Recommended Posts

Hello again

 

OK, the simplest way is just to use "display: none;" (without quotes) in the relevant css file.

 

I'm using a mobile at the moment but will try to give you the answer when I get back to the office.

 

Paul

Link to comment
Share on other sites

Hello

 

If your using default PS theme 1.6 then Yes:

 

In my case then it is this

 

my shop/themes/default-bootstrap/css/global.css

 

I find it easier to place any css changes in global.css right at the very bottom of the file and to write a comment, so, it would look like this:

 

 

/*  Added This Code To Hide The "New Label" On My Products  */

 

  .new-label {display: none;

 

 

Paul

Link to comment
Share on other sites

Unfortunately, this solution with creating a css file it doesn't work. What i did, i came back to original "global.css" file and found the piece of code where is state this label "New" and found if. I've placed "new-label {display:none}" and the label disappear but the text ("New" and in my language "Nou") is still there (see enclosed). Any idea? Here is the code:

 

.label-new {    .new-label {display:none}
    background: url(../img/new.png) no-repeat;
}
.label-sale {
    background: url(../img/sale.png) no-repeat;
    
}
.products-list-in-row .label-sale {    .new-label {display:none}
    background: url(../img/sale.png) no-repeat;
}
.products-list-in-row .label-new {
    background: url(../img/new.png) no-repeat;    
}

post-1047878-0-01785500-1436108863_thumb.jpg

Link to comment
Share on other sites

Then you should do the following:

 

.label-new {	
	background: url(../img/new.png) no-repeat;
}
.label-sale {
	background: url(../img/sale.png) no-repeat;
	
}
.products-list-in-row .label-sale {	
	background: url(../img/sale.png) no-repeat;
}
.products-list-in-row .label-new {
	background: url(../img/new.png) no-repeat;	
}

should became:

.label-sale {
	background: url(../img/sale.png) no-repeat;
}
.products-list-in-row .label-sale {	
	background: url(../img/sale.png) no-repeat;
}

i.e. you must remove the 1st and the 4th declarations. This is according to the CSS file you provided. From some module there can be other changes.

Another variant is the following:

.label-new {	
	display: none !important;
}
.label-sale {
	background: url(../img/sale.png) no-repeat;
	
}
.products-list-in-row .label-sale {	
	background: url(../img/sale.png) no-repeat;
}

This way you are not displaying the new label, and the !important keyword makes the declaration to take precedence over the normal declarations.

Edited by PrestaShopDeveloper (see edit history)
Link to comment
Share on other sites

  • 4 months later...

Hello again

 

OK, the simplest way is just to use "display: none;" (without quotes) in the relevant css file.

 

I'm using a mobile at the moment but will try to give you the answer when I get back to the office.

 

Paul

Thanks, I changed global.css and it working! :)

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