1. Folium
  2. Friday, 06 March 2020
I added on master.scss the line "@import 'custom';" and also created the file custom.scss at same folder like old templates with .less archives but is not working.

What i have to do to have my custom style file?
Accepted Answer
Ok, now is working (file permisions problem). I know this method is old, i also used years ago. But the posibilities of less or scss are infinite and after long time using custom.less in your templates is a shock for me rooll back to custom.css.


If u want to use it SCSS file need it this change in your template file:
(but at your own risk! and before change anything make it back up!)

Create it your scss file, example: king.scss
copy to your template/name/scss folder

Open this file: template/name/scss/master.scss
Go to last row after put in this text in last place
@import "king";
(just like the rest)
save!

Open this file, template/name/index.php
and search this line:
$theme->add_scss('presets', $scssVars, 'presets/' . $scssVars['preset']); (line 123)
after the row put in this row:
$theme->add_scss('king'); (without .scss !)
(just like the rest)
save!

Optional:
Now, go to admin open your template style -> template options -> Advanced - > SCSS - > Compile SCSS to CSS -> ON
save!

Test it.
Not perfect, but working.
  1. more than a month ago
  2. Folium
  3. # Permalink
Responses (14)
Hi,
it's not so simple,
instead use custom.css file.

It was described in Helix Ultimate documentation.
  1. more than a month ago
  2. Folium
  3. # 1
css sintax in 2020 for a professional templates? are u kidding me? why you jump to scss if u cant enable a custom option for your clients? in helix3 the custom.less was enabled. After lot of time working with less styles, down to css simply a ****.

Are you working to enable a custom.scss file. I have to renew the subscription next month and this is indispensable for me.
  1. more than a month ago
  2. Folium
  3. # 2
I understand your bitterness, but personally I won't change the template code.

Maybe there is a way to solve it somehow, but I don't know the answer.
For sure you can load any file with a template, but its processing does not depend on me.
  1. more than a month ago
  2. Folium
  3. # 3
Just to be sure, aren't you working to implement a custom.scss?
  1. more than a month ago
  2. Folium
  3. # 4
yes, it's on the waiting list (Helix update), I remember I added it personally some time ago.
  1. more than a month ago
  2. Folium
  3. # 5
I can't find the url where I can see the new features to be aware of the helix changes. Can you share it please?
  1. more than a month ago
  2. Folium
  3. # 6
We use Trello software for this purpose, It's for our eyes only.
  1. more than a month ago
  2. Folium
  3. # 7
What option you offer me to be updated about new helix features?

Also i added a custom.css at "\templates\folium\css" but is not working. I also added "<link href="/templates/folium/css/custom.css" rel="stylesheet" type="text/css">" in template option "Custom code / Before </head>" but still not working. what i am doing wrong? all cache cleared.
  1. more than a month ago
  2. Folium
  3. # 8
you don't have to add this line to work with custom.css,
just insert custom.css and file will be loaded. All users here use this method for over 5 years. Me included.

Just check source code.
  1. more than a month ago
  2. Folium
  3. # 9
  1. more than a month ago
  2. Folium
  3. # 10
Ok, now is working (file permisions problem). I know this method is old, i also used years ago. But the posibilities of less or scss are infinite and after long time using custom.less in your templates is a shock for me rooll back to custom.css.
  1. more than a month ago
  2. Folium
  3. # 11
thanks,
I hope it will be soon implemented inside Helix core
  1. more than a month ago
  2. Folium
  3. # 12
thanks,
I hope it will be soon implemented inside Helix core


is there any news in sccs case?
when is implementation expected?
don't you have to wait for the new helix version?
I hope this will the next feature in this version.

thx
  1. more than a month ago
  2. Folium
  3. # 13


There are no replies made for this post yet.
Be one of the first to reply to this post!


This forum is archived

This forum has been archived. Please use JoomShaper official support system.