Jump to content

Archived

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

ketri

Could the "Custom LESS/CSS" and style.less be the same thing?

Recommended Posts

ketri

Hi!

I've been trying out DMS for couple of days now. Very, very exited.
If someone would have told me that there's this "amazing drag & drop framework" to create WP themes, I would probably have told them to go shove it...

What I really enjoy (and hope to see even more in the future) is the ability to use code to customize things and not be "too easy" for newbies in a way that would make developers cringe.
Being able to use sublime text and all the lovely stuff that us developers enjoy, but still save loads of time by drag&dropping 90% of the page. Nice!

My question/suggestion:

 

If I've understood correctly, there's 2 (or 3 with some plugin, but whatever) ways to add custom LESS: 
- Editing in the front end in the "Custom LESS/CSS" -form
- Editing the child-themes style.less -file with your favorite text editor.

Could these 2 "files" just be the same? And update each other when the other is updated.
If not, is it technical issue or some other issue?
I would love to be able to quickly whip out less in the custom less-form because of the really fast updating. But also would love to be able to use sublime text 2 sometimes because of how fast it is with autocomplete etc. And of course it would be horrible to copy paste the entire code from one to the other and even worse to have LESS in 3 places.
Why shouldn't the style.less update the "Custom LESS/CSS" -form, and the "Custom LESS/CSS" -form update the style.less?

Thanks!

Share this post


Link to post
Share on other sites
James B

Hi there,

 

The style.css or style.less inside of a child theme is usually used to create your own child theme which can be packaged and sold on the store or exported into multiple sites. This holds all the style information for your specific theme in one place. Clients who purchased a child theme off the store or used your custom child theme, would be able to install the theme and then make further changes to the site via the css/less panel in the DMS editor, without it affecting the child themes original code.

 

If the code from a child theme was to be copied between the style.less and the css/less panel, then any clients would be able to see and edit the child theme code, which could break the theme. There would also be no way to revert back to the original code or reset if the client made a mistake etc. 

 

Hope that helps.


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

  • 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 2.1.9.6
       
      Please advise. I'm now having issues getting any plugins to work. Not sure what to do next.
      thanks,
      -b
    • 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.
×