Jump to content

[Solucionado] Cambiar posición/separación de etiquetas de descuento y novedad


Recommended Posts

Hola, estoy modificando un tema hijo a partir de la plantilla classic de Prestashop 1.7.

He cambiado el tamaño de los artículos pero me encuentro un problema. Ahora las etiquetas de descuento y novedad, al haberlas reducido de tamaño, me aparecen muy separadas entre sí  y por más que toco el CSS no doy con la forma de que aparezcan más juntas ¿Alguien me puede dar alguna pista?

Muchas gracias

2018-09-30 21_56_02-Window.png

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

Me autorrespondo, por fin encontré la solución. Estaba en el archivo /themes/classic/assets/js/theme.js

En esta línea, en mi caso en la 117

n.length && (r.css("top", 2 * n.height() + 10), n.css("top", -(0, a.default)(e).find(".thumbnail-container").height() + (0, a.default)(e).find(".product-description").height() + 10)), i.length && (n.css("top", parseFloat(n.css("top")) + i.height() + 10), r.css("top", 2 * n.height() + i.height() + 20)), (0, a.default)(e).find(".color").length > 5 && function() {

He variado un poco la primera parte:

n.length && (r.css("top", 1 * n.height() + 5), n.css("top", -(0, a.default)(e).find(".thumbnail-container").height() + (0, a.default)(e).find(".product-description").height() + 10)), i.length && (n.css("top", parseFloat(n.css("top")) + i.height() + 10), r.css("top", 2 * n.height() + i.height() + 20)), (0, a.default)(e).find(".color").length > 5 && function() {

Y ya quedan bien juntas las flags

 

2018-10-01 00_16_57-Window.png

Edited by jacolguz (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...