test
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • vifadmin Friend
    #202154

    I am using the local folder in my JA Sugite template.

    Is it possible to set up template.less in the local folder that imports other less files that are in the same folder as well? My template.less override file got to be very long because of many customizations, so I was hoping to split it up to import other files.

    For example, in /local/less I want to have template.less that has:

    @import “home.less”;
    @import “landing-page.less”;

    … etc

    I have tried this but it does not seem to be working. I am not sure if I just have an error in one of the imported less files or if this won’t work. I get an error that “variable @slate is undefined” (a color I’ve defined in variables-custom.less)

    vifadmin Friend
    #553290

    Actually I think I figured this out.

    There has to be a file in the parent /less folder for it to override- even if it’s blank. So I wouldn’t be importing anything within my template.less file. I would just add a file called “home.less” in the parent folder, then create an override file for it in the local folder.

    Not sure this method makes a lot of sense but please let me know if I’m correct in this assumption.

    Adam M Moderator
    #553365

    Hi @vifadmin,

    Yes, you will need the same file in parent folder (even if it’s blank) in order to make the file in local folder work.

Viewing 3 posts - 1 through 3 (of 3 total)

This topic contains 3 replies, has 2 voices, and was last updated by  Adam M 10 years, 2 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum