Jump to content


Photo
- - - - -
Resolved

Supporting Less In A Child Theme



  • Please log in to reply
8 replies to this topic

#1 paul_t

paul_t

    Super Member

  • Members

  • 154 posts
  • Framework Version:DMS 1.1.6
  • Country: Country Flag

Posted 26 November 2012 - 11:39 AM

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

#2 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 27 November 2012 - 04:07 AM

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.

#3 Simon_P

Simon_P

    Messer

  • Administrators
  • 8388607 posts
  • LocationDevon
  • Framework Version:2.0
  • Country: Country Flag

Posted 27 November 2012 - 04:16 AM

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

#4 paul_t

paul_t

    Super Member

  • Members

  • 154 posts
  • Framework Version:DMS 1.1.6
  • Country: Country Flag

Posted 27 November 2012 - 01:08 PM

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

#5 Simon_P

Simon_P

    Messer

  • Administrators
  • 8388607 posts
  • LocationDevon
  • Framework Version:2.0
  • Country: Country Flag

Posted 27 November 2012 - 01:53 PM

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.

#6 paul_t

paul_t

    Super Member

  • Members

  • 154 posts
  • Framework Version:DMS 1.1.6
  • Country: Country Flag

Posted 27 November 2012 - 05:56 PM

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

#7 Simon_P

Simon_P

    Messer

  • Administrators
  • 8388607 posts
  • LocationDevon
  • Framework Version:2.0
  • Country: Country Flag

Posted 27 November 2012 - 06:21 PM

No its automagically loaded

#8 paul_t

paul_t

    Super Member

  • Members

  • 154 posts
  • Framework Version:DMS 1.1.6
  • Country: Country Flag

Posted 27 November 2012 - 08:49 PM

thanks

#9 mackenzie

mackenzie

    Advocate

  • Members
  • 333 posts
  • Country: Country Flag

Posted 27 November 2012 - 11:44 PM

The topic was marked as resolved.





Also tagged with one or more of these keywords: Resolved