i ve add the file custom.less but not parsing less

More
3 years 7 months ago #9132 by intertexta
intertexta created the topic: i ve add the file custom.less but not parsing less
i've add custom.less file in less directory and the declaration @import "custom.less"; in template.less. if i use less variable the template give me back an error:
Less Parser - variable @JMbaseLineHeight is undefined in file C:/xampp/htdocs/xxxxxxx/templates/jm-university/less/custom.less in custom.less on line 89, column 17 87| margin: -2px 15px 0 0; 88| height: 25px; 89| line-height: @JMbaseLineHeight; 90| padding: 0; 91| width: 0; 92|

Please Log in or Create an account to join the conversation.

More
3 years 7 months ago #9133 by artur
artur replied the topic: i ve add the file custom.less but not parsing less
Hello,
You do not need to add '@import "custom.less";' in template.less.
Instead you should add :
// VARIABLES import
//---------------------------------------------------------------
   
@import "template_variables.less";
@import "bootstrap_variables.less";

// MIXINS import
//---------------------------------------------------------------
  
@import "override/ltr/mixins.less";
@import "../../../plugins/system/ef4_jmframework/includes/assets/template/bootstrap/less-ext/mixins-ext.less"; //JM extended mixins
@import "template_mixins.less";
in custom.less.

Regards.

Please Log in or Create an account to join the conversation.

More
3 years 7 months ago #9134 by intertexta
intertexta replied the topic: i ve add the file custom.less but not parsing less
Thank you

Please Log in or Create an account to join the conversation.

More
1 year 2 months ago #10546 by Corrin JK
Corrin JK replied the topic: i ve add the file custom.less but not parsing less
I have the same issue but in my case the error message is with the template_variables.less I did not add anything to this file and only worked with a custom.less file. And my custom.less file was up and the site was working fine. After trying to fix an issue with a modification of the JM University template on a duplicate style for the home page and a duplicate default style for all the other pages, I found that the custom default template would not update on the frontend. I tried clearing the cache from joomla template backend and from two browsers in hope that I would see my changes. Nothing worked. And then I started to get the parsing error which is a reoccurring event that I can usually remedy by removing my last changes to the custom.less file. In this case, I didn't touch the custom.less so I don't know what the issue is. I can't believe that changing the bootstrap layout with Layout Builder and making colors modifications would ruin the parsing of less.

please advise

Please Log in or Create an account to join the conversation.

More
1 year 2 months ago #10547 by artur
artur replied the topic: i ve add the file custom.less but not parsing less
Hello,
These problems are not related.
Please do not duplicate the messages from the support ticket.

Please Log in or Create an account to join the conversation.

More
1 year 2 months ago #10550 by Corrin JK
Corrin JK replied the topic: i ve add the file custom.less but not parsing less
Sorry, I posted this here first. I then thought it should be on a support ticket so I put it there. I will not post this mistake again. Thanks.

Please Log in or Create an account to join the conversation.

Time to create page: 0.322 seconds

INDICO S.C.

ul. Wałowa 10/3, 84-200 Wejherowo, registered in Centralna Ewidencja i Informacja o Działalnosci Gospodarczej
NIP/VATID: PL5882424318

Copyright © 2009-2019 Joomla-Monster.com All rights reserved.

Joomla-Monster.com and this site is not affiliated with or endorsed by The Joomla! Project™. Any products and services provided through this site are not supported or warrantied by The Joomla! Project or Open Source Matters, Inc. Use of the Joomla!® name, symbol, logo and related trademarks is permitted under a limited license granted by Open Source Matters, Inc.