Pregunta

I cannot properly :extend a class in Gantry framework. I'm trying to do:

.mybox:extend(.box3) {
   /* Customization */
}

but it's not working.
I'm wondering whether it could be a version-related less compiler issue.

I tried defining mybox in template-custom.less and header-light-custom.less (because .box3 is in header-light.less and I'm using the "light" header), with no luck.

¿Fue útil?

Solución

Gantry's PHP compiler doesn't support extends. It's planned to include support for extends in lessphp 1.4, https://github.com/leafo/lessphp/issues/426, though whether Rockettheme will update their implementation at that time is another matter.

You could simply disable Gantry's compiler and use your own, which is my preference;

http://internet-inspired.com/wrote/tutorials/disabling-gantrys-less-compiler/

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top