Jump to content

Archived

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

stephenoke

Enable LESS in customise plugin

Recommended Posts

stephenoke

Hi, I am hoping I can get some help with what I assume will be a pretty simple issue.

 

I am new to LESS and I am trying to get the style.less file working on my site. As per the advice in the Pagelines docs, I have activated the customize plugin, created a new document called style.less in the pagelines-customize folder and put some css in there to test. The css is not being applied.

 

Is this all that is required to apply the style.less file or have I missed any steps? I put the same code in the style.css file and this works fine so I don't think there are any problems with the code.

 

Thanks in advance

 

 

Share this post


Link to post
Share on other sites
Danny

Hi Stephen,

 

There is no need to use the Customize plugin, use a child theme instead, as they're basically the same. So you can use either the PL Starter themes or my Skeleton theme.

 

http://answers.pagelines.com/how-to-install-a-child-theme

http://dannyholt.github.io/skeleton/


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
stephenoke

Thanks, I will have a look at those articles. Will activating a child theme reset all of my changes made within the DMS editor or just the additional CSS?

Share this post


Link to post
Share on other sites
Danny

A child theme shouldn't reset your DMS layouts etc.., the only thing that may change are widgets and your menus, as they're specific to theme. However, as this is a child theme, that shouldn't be the case. For sanity reasons, it would be wise to perform a backup prior to enabling the child theme.

 

If you have custom CSS in the DMS editor, you will want to copy and paste this into the child theme editor and if you have any custom CSS/LESS in the customize plugin, copy and paste this into the child themes style.css or style.less files, depending on the code you're using.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites

  • Similar Content

    • Michael Kummer
      By Michael Kummer+
      Hi guys!
      I am using the LESS/CSS Pagelines extension and tried to add the following code to make use of FontAwesome:
      a.c2a:before {
          content: "\f07a\00a0";
          font-family: "Font Awesome 5 Pro";
          Font-weight: 900;
          font-style: normal;
          font-weight: normal;
          text-decoration: inherit;
          padding-left: 4px;
      }
       
      The issue is that as soon as I have the CSS via the Custom Styling text box, Pagelines (or the extension) strips out the backslashes (\). As a result, I had to abandon the CSS/LESS extension and instead add all my CSS code to a separate .css file.
      Is there a fix or workaround for this?
      Thanks
      Michael
    • 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
    • Lisa Haran
      By Lisa Haran+
      Hi 
      I have a map here http://www.iloveoffset.com/maps/
      I want to add several pointer locations to the map, but when I do they do not appear.
      On this map there are 2 pointer locations and as you can there is only one visible.
      Earlier today I added 7 and could only see 4 so there is something odd going on.
      My theme is up to date
    • Audun MB
      By Audun MB+
      How do I get the LESS in a child theme to compile?
    • clj182
      By clj182+
      Hello,
      I've been having trouble unlocking the template section for past couple of weeks. When I try clicking nothing happens. 
      I've deleted my custom css and removed plugins. Im down to having only the following plugins:
      Akismet
      Contact Form 7
      DMS Professional Tools
      Pagelines Updater
      WooCommerce
      It was working fine before i have no idea what's going on with it.
×