Jump to content


Photo
- - - - -

Setting Less Properties From The Admin Panel ?

less

Best Answer James B , 03 December 2012 - 10:50 PM

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...s-and-feedback/

Go to the full post


  • Please log in to reply
5 replies to this topic

#1 shannoga

shannoga

    Member

  • Members

  • 18 posts
  • Country: Country Flag

Posted 03 December 2012 - 11:02 AM

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



#2 Danny

Danny

    Is Awesome!

  • Moderators
  • 15818 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 03 December 2012 - 11:13 AM

Hi,

 

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



#3 shannoga

shannoga

    Member

  • Members

  • 18 posts
  • Country: Country Flag

Posted 03 December 2012 - 11:25 AM

Yes, exactly.

Thanks



#4 James B

James B

    Advocate

  • Members

  • 5126 posts
  • LocationSurrey - UK
  • Country: Country Flag

Posted 03 December 2012 - 10:50 PM   Best Answer

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

Please Login or Register to see this Hidden Content



#5 shannoga

shannoga

    Member

  • Members

  • 18 posts
  • Country: Country Flag

Posted 26 December 2012 - 09:45 AM

Thanks

I will.

Shani



#6 beardedavenger

beardedavenger

    Unicorn Wrangler

  • Members

  • 1219 posts
  • Country: Country Flag

Posted 26 December 2012 - 03:25 PM

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

 

 

 

Please Login or Register to see this Hidden Content

 

 

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







Also tagged with one or more of these keywords: less