Jump to content
Beny Schonfeld

Css Parse Errors & Unresponsive Css

Recommended Posts

Beny Schonfeld

Hi there,

I upgraded from PL 2.3.3 to 2.3.4 this morning and now I'm getting some weirdness....

1. I'm getting the following error:

"PageLines Custom LESS/CSS error.

parse error: failed at `font-family: \"Century Gothic\", \"Helvetica Neue\", Helvetica, Arial, sans-serif; ` line: 970"

The weird thing is that when you look at line 970 it does not have that font-family instruction... It's actually a box-shadow instruction... Besides, that line of code has been there for weeks and never gave me an error....

2. The other issue (much bigger issue) is that none of the new CSS I'm adding is making any changes on the elements I'm targeting (I'm just trying to add a margin right now... nothing complex!)

How do I downgrade to 2.3.3 again please?!?


Beny Schonfeld

Appeando.com

On Twitter: @appeando

On Facebook: http://facebook.com/appeando

Share this post


Link to post
Share on other sites
ggusd

Hello, I also have this issue and would also like to know how to downgrade.

Share this post


Link to post
Share on other sites
Beny Schonfeld

I just tried to simply change the color of <h3> and nothing... The css is not producing any changes!

Guys, I need I link to the PL version 2.3.3 ASAP!

From my dashboard it's not available. And I need to finish this website today!!!!

Thx


Beny Schonfeld

Appeando.com

On Twitter: @appeando

On Facebook: http://facebook.com/appeando

Share this post


Link to post
Share on other sites
Simon

How about paste us the CSS you put into the custom CSS area.

Share this post


Link to post
Share on other sites
Beny Schonfeld

How about paste us the CSS you put into the custom CSS area.

There's a lot of CSS... but I was trying to add a margin to an element, simple stuff and no matter how I tried, it wouldn't take...

So then I tried this:


.page-id-31 div.entry_content h3 {

color: #7E60C4 !important;

}

And nothing... it didn't change the color (from gray to purple...). And BTW, when I inspect the <h3> using firebug, the instruction to change the color to purple doesn't even show up... It's like it never makes it from the Pagelines Custom CSS settings to the live page (yes, I reloaded the page, I emptied cache as well. Nothing).

That's when I started suspecting it might have to do with the update...

If you give me a link so I can download version 2.3.3 again, I'll install it and try again, and let you know if it resolved the issue.

Please provide me that link asap... I haven't been able to do and CSS work today on that site and I'm suposed to finish it today...

Please, please, pretty please... give me a link with the download...

Thanks

Beny


Beny Schonfeld

Appeando.com

On Twitter: @appeando

On Facebook: http://facebook.com/appeando

Share this post


Link to post
Share on other sites
Simon

You can add CSS to the customise plugins style.css and not use the less compiler

Looks to me like something in your code is escaping be it a quote or double quote. But I can't tell as you wouldn't paste it.

I won't have any Internet til tomorrow as I'm not at home to upload an older version but it will be the same as the less compiler has not been updated.

Share this post


Link to post
Share on other sites
James B

Hi there, do you see a button at the top of your site in the admin bar saying 'flush LESS', if you do please press it. This will flush the LESS errors and correct the code.


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
Beny Schonfeld

You can add CSS to the customise plugins style.css and not use the less compiler

Looks to me like something in your code is escaping be it a quote or double quote. But I can't tell as you wouldn't paste it.

I won't have any Internet til tomorrow as I'm not at home to upload an older version but it will be the same as the less compiler has not been updated.

I have over 3,000 lines of CSS... and all of it was working fine yesterday. Even this morning...

The only thing I tried to do today after the update was this:


.page-id-31 div.entry_content h3 {

color: @purple !important;

}



.about-page-optin form .text {

margin-top: 15px;

margin-bottom: 5px;

}

That's all... Then I tried instead of targeting that .text selector to target the selector above and add a margin-bottom, and the selector below to add a margin-top. But nothing... And BTW, I know the above .text selector works because all the instructions I wrote prior to the update are working... The full LESS code I'm using for that form is:

.about-page-optin {

	background: @grayLighter;

	border: 1px solid @grayLight;

	.roundCorners;

	form {

		text-align: center;

		margin: 15px 30px 30px 30px;

		h3 {

			margin-top: 15px;

			color: @purple;

			.simpleShadow (@white);

		}

		p {

			.simpleShadow (@white);

		}

		.text {

			width: 40% !important;

			min-width: 380px;

			padding: 10px 5px !important;

			margin-top: 15px !important;

			margin-bottom: 15px !important;

			height: 37px;

			background-color: #ffffff;

			color: #333333;

			border: 1px solid #a2a2a2;

			font-size: 13px;

			box-shadow: 0 0 5px #bababa !important;

			-moz-box-shadow: 0 0 5px #bababa !important;

			-webkit-box-shadow: 0 0 5px #bababa !important;

			border-radius: 4px !important;

			-moz-border-radius: 4px !important;

			-webkit-border-radius: 4px !important;

			background-image: url("http://www.designsbyfelicia.com/wp-content/uploads/2012/05/1337200790_email.png");

			background-repeat: no-repeat;

			background-position:96% 30%;

			background-size: 26px;

			&:focus {

				border: 1px solid #595959;

				box-shadow: 0 0 5px #e47532 !important;

				-moz-box-shadow: 0 0 5px #e47532 !important;

				-webkit-box-shadow: 0 0 5px #e47532 !important;

			}

		}

		input.submit {

			#buttonStyle > .orangeWithShadow;

		}

	}

}

Everything I've tried today as far as CSS is not producing any changes... The above code is being used right now, you can see the page here: http://designsbyfeli...icia-weinstein/

You'll notice that the <h3> is still in gray, and the .text field in the form doesn't have the 15px top margin and 5px bottom margin...

I'll try pasting the CSS into the customize plugin > style.css and let you know how that goes...

It's also worth noting that I don't write my LESS in the Pagelines compiler... I write my LESS in Coda, compile using the LESS app for Mac, then copy the compiled CSS into the Pagelines LESS/CSS compiler. The LESS app for mac gives me error alerts if there are any, and it is NOT giving me any errors... everything seems to be fine with the code.

Can anybody just email me a zip file with Pagelines version 2.3.3? It would be very straightforward to re-install it and assess if this is actually a bug with the update...

Click here to email me the file please!!!! It's really urgent.

I'll let you know about pasting the CSS to the customize plugin...


Beny Schonfeld

Appeando.com

On Twitter: @appeando

On Facebook: http://facebook.com/appeando

Share this post


Link to post
Share on other sites
Beny Schonfeld

You can add CSS to the customise plugins style.css and not use the less compiler

I deleted my CSS code from the pagelines compiler and pasted it into the customize plugin > style.css...

The code is working fine when I do that.

What does that mean?


Beny Schonfeld

Appeando.com

On Twitter: @appeando

On Facebook: http://facebook.com/appeando

Share this post


Link to post
Share on other sites
Beny Schonfeld

Hi there, do you see a button at the top of your site in the admin bar saying 'flush LESS', if you do please press it. This will flush the LESS errors and correct the code.

I do not see that button anywhere in my admin bar...


Beny Schonfeld

Appeando.com

On Twitter: @appeando

On Facebook: http://facebook.com/appeando

Share this post


Link to post
Share on other sites
James B

Hi there,

I've pasted the error line you're getting in and got the compile same error. LESS doesn't seem to like quotes. Please find that line in the css and remove the quotes. As soon as I removed the quotes the error resolved.

{font-family: Century Gothic, Helvetica Neue, Helvetica, Arial, sans-serif;}

http://imgur.com/5QB8X - Less Flush button


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
Beny Schonfeld

Hi there,

I've pasted the error line you're getting in and got the compile same error. LESS doesn't seem to like quotes. Please find that line in the css and remove the quotes. As soon as I removed the quotes the error resolved.

{font-family: Century Gothic, Helvetica Neue, Helvetica, Arial, sans-serif;}

I'll give it a try... though I find it strange that it's the first time I'm getting that error even though that code has been there for months...

I'll let you know how it goes. As for the "flush less" button, still not showing up for me: http://awesomescreenshot.com/043kf1443


Beny Schonfeld

Appeando.com

On Twitter: @appeando

On Facebook: http://facebook.com/appeando

Share this post


Link to post
Share on other sites
Beny Schonfeld

Hi there,

I've pasted the error line you're getting in and got the compile same error. LESS doesn't seem to like quotes. Please find that line in the css and remove the quotes. As soon as I removed the quotes the error resolved.

Hey James, I removed the quotes from the font-family instructions... that got rid of that error, but now it's giving me another one. The new error is also because of the quotes, but it's on a mixin that addresses IE gradient issues so I don't dare remove it, especially because I've been using all of this code for months without a single issue.

These issue started today, as soon as I updated from 2.3.3 to 2.3.4...

Now, here's something else interesting (in a very scary way!)

When I paste my compiled CSS code in the pagelines compiler, a lot of the instructions are NOT styling the page as they should... see pic here --> http://awesomescreenshot.com/0d1kf1ac4

But when I paste it into the Pagelines Customize Plugin > style.css the page looks as it should ---> http://awesomescreenshot.com/05bkf1r73

To be clear: the above pics are EXACTLY the same CSS code...

There's something definitely funky with this latest update...


Beny Schonfeld

Appeando.com

On Twitter: @appeando

On Facebook: http://facebook.com/appeando

Share this post


Link to post
Share on other sites
hopeofglory

I agree with you. I am also having lots of compile errors after I had upgraded to the latest version yesterday and its making my website look like a test environment :(. When you say you paste it in Pagelines Customize Plugin > style.css, is this via the editor?

Share this post


Link to post
Share on other sites
Simon

We decided to run the CSS through Wordpress kses data validation which all options should be ran through anyway.

Reason for this was simple, people were adding script tags Javascript and HTML into the CSS box rendering wp-admin completely inaccessible!

Only drawback it seems is kses is escaping quotes now and that's also breaking the less.

So I'm gonna have to find a middle ground.

Share this post


Link to post
Share on other sites
Beny Schonfeld

I agree with you. I am also having lots of compile errors after I had upgraded to the latest version yesterday and its making my website look like a test environment :(. When you say you paste it in Pagelines Customize Plugin > style.css, is this via the editor?

Yes. Go to plugins > editor then select "pagelines customize" from the menu on the top right of screen. Then click on the style.css file. Enter your CSS there and save.


Beny Schonfeld

Appeando.com

On Twitter: @appeando

On Facebook: http://facebook.com/appeando

Share this post


Link to post
Share on other sites
hopeofglory

Done this but I have lost lots of my customization as a result of this. Great job pagelines

Share this post


Link to post
Share on other sites
Beny Schonfeld

Done this but I have lost lots of my customization as a result of this. Great job pagelines

I forgot to mention... You probably did this but just in case...

When you add your CSS code to the pagelines customize plugin > style.css make sure you then remove any CSS you had in the pagelines less/CSS compiler...


Beny Schonfeld

Appeando.com

On Twitter: @appeando

On Facebook: http://facebook.com/appeando

Share this post


Link to post
Share on other sites
hopeofglory

Yes I did remove from pagelines less/CSS compiler but no difference

Share this post


Link to post
Share on other sites
Simon

So you removed the font family line from the CSS area and it's still giving the same error about font family?

Share this post


Link to post
Share on other sites
Simon

The CSS you posted above has quotes in it. Remove the quotes from the image URLs you don't need them

Share this post


Link to post
Share on other sites
Beny Schonfeld

So you removed the font family line from the CSS area and it's still giving the same error about font family?

No. Now it gives me another error from another instruction that has quotes.

But I'm not going to mess around with code that my LESS compiler says is fine. That's just looking for trouble. (All it takes is my fat thumb hitting something and then I'll be looking for that typo for hours...)

Besides if you look at the post above where I share the two screen pics you'll see that when I paste my CSS back into the compiler it's completely screwing up the website.... But when I place the code in the pl customize plugin it works fine.


Beny Schonfeld

Appeando.com

On Twitter: @appeando

On Facebook: http://facebook.com/appeando

Share this post


Link to post
Share on other sites
Simon

If its just CSS your better off having it in the customise plugin anyway

Share this post


Link to post
Share on other sites
hopeofglory

Did manage to resolve the problem by using a custom css plugin and all looks good.

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

    • gstrahle
      By gstrahle+
      Hi,
      I am hoping to figure out how I can get my PageLines Full Nav to display layered in front of a sticky footer element on my website - 3keymedia.com
      I would like the Full Nav to overlay the entire screen when opening the menu as you will see when opening on a desktop the footer of nav content is cropped by the sticky footer.
       
      Thanks


    • Christian
      By Christian+
      Hi everyone, since Instagram had allowed to publish in different ratio formats (instead of only square ratio) the grams stripe has different heights. Can you tell me if i can fix it easily with some CSS?
    • Michael Kummer
      By Michael Kummer+
      Hi guys!
      I have noticed that my primary sidebar becomes intermittently invisible when browsing through various blog articles on michaelkummer.com/blog.
      See:
      https://www.dropbox.com/s/z646sgoa3mfjl1j/Screenshot 2018-07-12 15.57.46.jpg?dl=0 and https://www.dropbox.com/s/vdledzzgginvwgv/Screenshot 2018-07-12 15.57.57.jpg?dl=0
      Upon refresh, the sidebar appears. I have been using the following CSS code to hide the sidebar on mobile without any issues. 
      @media only screen and (max-width: 993px) {
      /* hide sidebars */
           .plsb {
              display: none !important;
          }
      }
      I tried to add the following CSS to force the sidebar to show on screens that are wider than 994 pixels but to no avail. Any clue what could be causing this issue?
    • 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
    • glyph.marketing
      By glyph.marketing+
      Hello, I am having a problem similar to that experienced by Michael Kummer here. We have pages that show this automatic scrolling issue (examples here and here) and it is sufficiently annoying that we have seen customers bounce while trying to convert. Strangely, it only happens at specific resolutions, so it can be difficult to reproduce. In general we can only consistently reproduce it on a 4k resolution with a browser width between 1517 and 1536px. 
      Thanks to Michael Kummer's help we were able to set the overflow-anchor property to none in the entire body, which fixed the issue as far as we can tell, but also obviously disabled scroll anchoring for the whole site. I tried applying it to the specific element that looked like it was being reloaded, which was the PL Meganav extension, but that was unsuccessful. 
      Can anyone help us figure out which element or ID we can apply this property to, so that we can fix the scrolling issue but not disable scroll anchoring for the entire site?
      Thank you - 
      Glyph Language Services
×