Jump to content
glennyboy

Adding Less To Pagelines Base Theme

Recommended Posts

glennyboy    9
glennyboy

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
Simon    247
Simon

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
glennyboy    9
glennyboy

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
Simon    247
Simon

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
glennyboy    9
glennyboy

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
Simon    247
Simon

well just add some css...


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

Share this post


Link to post
Share on other sites
glennyboy    9
glennyboy

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
Simon    247
Simon

perhaps provide a url so we can see?

Share this post


Link to post
Share on other sites
glennyboy    9
glennyboy

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
Simon    247
Simon

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
Simon    247
Simon

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

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 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.
×