Archived

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

  • 0

Adding Less To Pagelines Base Theme


Question

Posted · Report post

Hi

I have found a similar post to this, but am starting a new post in the hope that you will resolve lack of documentation on adding .less to a Pagelines Base / Templates Theme. You say .less is great, but then leave us with scant any info on how to implement.

I have added a style.less file to the theme folder (same place as style.css) and tried some .less, but nothing happens whosoever. Can you please advise on necessary steps to add .less to base theme.

Regards

Glennyboy

Share this post


Link to post
Share on other sites

11 answers to this question

Posted · Report post

The LESS code will only be added to the main css, if there are no errors, tell us the code you are adding to the file.

Share this post


Link to post
Share on other sites

Posted · Report post

I'm not getting errors - I'm not getting anything. To add .less to the base theme what do I do please? What should the .less file be called and where should it be placed?

I should say I was just trying some test .less to apply to body and then li and then a few other elements.

Share this post


Link to post
Share on other sites

Posted · Report post

Create a file style.less in the base theme folder. Thats all there is to it.

Share this post


Link to post
Share on other sites

Posted · Report post

I did that and got nothing. Perhaps you can provide some .less that I can use as a definitive test on the theme?

Share this post


Link to post
Share on other sites

Posted · Report post

well just add some css...


.apples {
color: green;
}
[/CODE]

Share this post


Link to post
Share on other sites

Posted · Report post

OK so I tried some basic css:-

body {

display:none;

}

Obviously I expected to see a blank screen, but all the content remained?

Share this post


Link to post
Share on other sites

Posted · Report post

perhaps provide a url so we can see?

Share this post


Link to post
Share on other sites

Posted · Report post

Can I PM you? I don't want to provide a link to the site in development.

Share this post


Link to post
Share on other sites

Posted · Report post

If you added the url as private in your user settings, only moderators can see it anyway

Share this post


Link to post
Share on other sites

Posted · Report post

Sorry how do I do that?

Share this post


Link to post
Share on other sites

Posted · Report post

Click your name at the top of this page, and click my settings then change your site url. You already have a url there.

Share this post


Link to post
Share on other sites