Jump to content

Archived

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

mnagillum

LESS PARSE ERROR in your Custom CSS

Recommended Posts

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.

Share this post


Link to post
Share on other sites
Danny

Hi,

A LESS Parse error is related to your own custom code you have added. Therefore, to find the error you will need to review your own code you have added for any invalid CSS.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
mnagillum

As I explained, I did not create a child theme (big mistake?) but relied on the inline styling in PageLines sections. Is all of that code compiled in one place where I can see it--and see what is on line 1040? 

Share this post


Link to post
Share on other sites
Danny

The line 1040 is meaningless, as all the LESS CSS in DMS is compiled. There is no LESS CSS error in the DMS core LESS CSS and therefore, the error is with custom code you have added. So you're going to need to review the code you have added.

I highly recommend you download GitHubs Atom code editor and install the linter packages, then add your custom LESS CSS and review it for errors. This will be much easier in a code editor with syntax highlighting and linter packages checking you code for errors.

If you also provide the custom CSS/LESS CSS you have added, we can review it.


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
    • sfmstudios
      By sfmstudios+
      I'm using the boxes section on a local development site to play around with some options, and running into an issue.  
      Have the following settings for the boxes:
      Type: Images/SVC Media on Top Image Appearance: Standard/Default Image/Icon Width: 280px Image Opacity: 100% Each of my box images is 280x150 in size, but the result of the image on the box is a strange zoomed-in, cropped square (see attached).  I looked to adjust border properties via CSS, but couldn't find a fix.  What solutions are out there?

    • paoloimperiale
      By paoloimperiale+
      Hi, 
      I was wondering if there's a way to modify the slider container size? My client would like it skinner- not as tall. How would you suggest doing that?
      Thank you.
      (this is for the paoloimperiale.com slider on the homepage) 
    • Audun MB
      By Audun MB+
      How do I get the LESS in a child theme to compile?
×