Jump to content

Setting Less Properties From The Admin Panel ?

Recommended Posts




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 ?



Share this post

Link to post
Share on other sites



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

Please search our forums, before posting!

Share this post

Link to post
Share on other sites
James B

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/

Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post

Link to post
Share on other sites

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.

Something big is coming for DMS + photographers.



Nick Haskins & CO - New home for all of my PageLines Store products! 



Better DMS - News, Tutorials, and Tips



Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Similar Content

    • GreyFoxWebDesign
      By GreyFoxWebDesign+
      Hi, could you let me know where the custom less/css is saved to - i.e. how I could access it directly via the server.
      I hid the Admin Bar by mistake and now can't save any changes to the Custom CSS as the Save Button is not available - so I need to find another way to access and edit the custom CSS.
      Thanks in advance
    • Audun MB
      By Audun MB+
      How do I get the LESS in a child theme to compile?
    • dymond
      By dymond+
      I've been trying to upload a video to use as a video background, but the size was 12m, and the alotted max file size is 8m. I downloaded a couple of pugins that increase the size by creating php.ini files and all of that jazz, but to no avail. It would say (Max file size = 250mb) but after I uploaded I would get an "HTTP ERROR",
      Soooo I logged into my cpanel and saw that the php I was using was 4 version out of date. I upgraded my php to PHP 5.6 and now I get
      Fatal error: Out of memory (allocated 39583744) (tried to allocate 15 bytes) in /homepages/39/d200014696/htdocs/dymondentertainment.com/wp-content/themes/dms/dms/includes/less.plugin.php on line 848
      When I activiate another theme that is not pagleines, the site works fine.... but will no longer work with Pagelines DMS Version 2.2
      My site has no gone dark. What can I do?
    • station16
      By station16
      I installed DMS for a new site and got an error message on install and when I install any plugin.
      Warning: Invalid argument supplied for foreach() in /nfs/c09/h04/mnt/208781/domains/prevailcoffee.co/html/wp-content/themes/dms/dms/includes/less.legacy.php on line 818
      I installed the latest DMS
      Please advise. I'm now having issues getting any plugins to work. Not sure what to do next.
    • mnagillum
      By mnagillum+
      I built a simple site without a child theme, using just the Custom Styling Classes and Inline CSS Styling available in PageLines' various sections. I also added a few lines of CSS in the Jetpack Appearance tool--maybe 10 or 12 lines, nowhere near 1040. I am now getting this message:
      /* LESS PARSE ERROR in your Custom CSS: parse error: failed at `` line: 1040 */
      Where can I find the Custom CSS and--more importantly--how can I fix it?
      The site is ndpointstrategies.com.
      Thanks in advance.