Domanda

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.

È stato utile?

Soluzione

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/

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top