Jump to content

Edit Sign for new projects[SOLVED]


Recommended Posts

Please help me a little to change right-top sign on pictures for new projects... insteed of text witch i can change and red background color i wonna remove all that and put there some png image witch will i make for new projects...

So please help to do it.

Tnx alot upfront...

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

The 45 degrees rotated 'NEW' text is caused by a css class "new", so just change the class call to a class="my_own_new" or so and then define the class in global.css to adjust as wished.

 

 

My 2 cents,

pascal

 

N.B.

(Files that use the class="new" are (maybe there are more, but these I could find in the default theme):

/modules/homefeatured/homefeatured.tpl

/themes/default/product-list.tpl

/themes/default/scenes.tpl

themes/default/mobile/category-product-list.tpl

 

 

Clean cache and give it a try.

Link to comment
Share on other sites

Thank you for replay but can you please explain me little better what to do...

Where is class "new" in global.css? i cant find it or... i what think i can just in file homefeatured.css change some of this lines:

products_block_center .product_image span.new {

display: block;

position: absolute;

top: 15px;

right: -30px;

padding: 1px 4px;

width: 101px;

font-size: 10px;

color: rgb(255, 255, 255);

text-align: center;

text-transform: uppercase;

background-color: rgb(153, 0, 0);

transform: rotate(37deg);

 

With some lines where will I add url to new.png to display instead of that tekst new with background color...

Link to comment
Share on other sites

Solved

Just change this line in homefeatured.css

 

#featured-products_block_center .product_image span.new {

display: block;

position: absolute;

top: 15px;

right:-30px;

padding: 1px 4px;

width: 101px;

font-size:10px;

color: #fff;

text-align: center;

text-transform: uppercase;

-moz-transform: rotate(45deg);

-webkit-transform: rotate(45deg);

-o-transform:rotate(45deg);

-ms-transform: rotate(45deg);

background-color: #990000;

transform: rotate(37deg); /* Newer browsers */

 

With those:

#featured-products_block_center .product_image span.new {

display: block;

position: absolute;

top: 5px;

right:5px;

 

background:url(img/novo.png) no-repeat top right;

width: 40px;

height: 42px;

transform: rotate(-20deg);

 

And you got img(novo.png) at top right corner instead of text "new" with red background color.

Link to comment
Share on other sites

×
×
  • Create New...