Archived

This topic is now archived and is closed to further replies.

  • 0

Resolved Supporting Less In A Child Theme

Question

Posted · Report post

Hi all

Starting with just the pagelines Base Theme

If I create a new file

style.less

and put it in the same place as the above's

style.css

I can't see it in the Theme Appearance > Editor when I select Base Theme to edit

I just get the Base Theme css and functions

Q: Should this file go somewhere else - or is there another issue I'm missing.

Seems counter productive to produce a child theme and then put all the LESS code into the Custom CSS/LESS Box in Pagelines Settings

tia

Share this post


Link to post
Share on other sites

8 answers to this question

Posted · Report post

I'm not sure which child theme you're using or how old it is, or which developer created it.

Current child themes should have a style.less file. Check your LaunchPad account to see if there's an update. If not, instead of creating a style.less file, (which we cannot support) let's wait for the developer to chime in here. Likely there's a newer version.

Unfortunately, there may be some things that go into a style.less file or other files allowing it to be read by the child theme that we don't know about.

Share this post


Link to post
Share on other sites

Posted · Report post

The wordpress theme editor will not recognise a .less file. You will need to edit it using FTP.

Share this post


Link to post
Share on other sites

Posted · Report post

OK - so we cant see it in Wordpress - a pain, but not tragic.

Using

A starter Child Theme for PageLines.

= 1.0.2 =

So I was wondering....

If you adapt this base theme ie write your own, using the custom code editor to test both CSS and LESS

I can see the CSS would eventually end up in the child theme style.css file

but what about the LESS code? and what is the correct way to bring that style.less file into the child theme

tia

Share this post


Link to post
Share on other sites

Posted · Report post

Best way to do it... forget about style.css!!

Make your theme using the custom css box, when your happy with it, copy the contents of that box into the style.less file in your child theme and remove it from the customcss box.

Share this post


Link to post
Share on other sites

Posted · Report post

OK thanks - appreciate it if can you just clarify

does the style.less file just go loose in the child theme folder?

if it does - is it automatically picked up by the child theme, or do you need some import code to go anywhere?

tia

Share this post


Link to post
Share on other sites

Posted · Report post

No its automagically loaded

Share this post


Link to post
Share on other sites

Posted · Report post

thanks

Share this post


Link to post
Share on other sites

Posted · Report post

The topic was marked as resolved.

Share this post


Link to post
Share on other sites