Archived

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

  • 0

Setting Less Properties From The Admin Panel ?


Question

Posted · Report post

Hey

 

Is there a way to set less variables in my theme from the admin panel.

for example - i Wish to let the user change the text color, I have a less variable - @text-color:#ffffff;  and I wish to let the user change that variable color.

 

What is the right approach for that ?

 

Shani

Share this post


Link to post
Share on other sites

5 answers to this question

Posted · Report post

Hi there, no i'm afraid there's nothing built in to allow those settings to be set in an admin panel. You'd have to enter into the custom css or the base theme's style sheet.

 

That's a great idea for a plugin though, why not submit it here http://www.pagelines.com/forum/forum/36-ideas-and-feedback/

Share this post


Link to post
Share on other sites

Posted · Report post

Thanks

I will.

Shani

Share this post


Link to post
Share on other sites

Posted · Report post

Yes, you can do this in Custom CSS box, in PageLines admin, then just have your user change the variable. 

 

 

 

@mycolor:      #333333;


.div {
  color: @mycolor;
}

 

 

Just be sure to namespace your vars (myColor, myColor2, etc). Do not use @red, @blue, etc as those are used in core.

Share this post


Link to post
Share on other sites

Posted · Report post

Hi,

 

Do you mean, have it as an option, similar to the Color Control options ?

Share this post


Link to post
Share on other sites

Posted · Report post

Yes, exactly.

Thanks

Share this post


Link to post
Share on other sites