Jump to content
robjonathanwilliams

Custom Css Not Updating And Css Parse Error

Recommended Posts

robjonathanwilliams    0
robjonathanwilliams

Hi,

It's happened AGAIN, Pagelines brings out an update and it buggers something up which I now have to spend hours fixing, I'm honestly sick and tired of this.

I've just updated to 2.3.4 and am now getting the error: parse error: failed at `#respond input[type="text"], .wp-comments .wp-comments-pad > #respond textarea { ` line: 1040

It happened when I simply tried to change one value in one line of css.

The problem is, the custom css will NOT update when I change it. It saves, but when I inspect the webpage it hasn't changed anything.

I'm certainly not a pro programmer or anything, but I can't understand why something that worked PERFECTLY is now giving these problems. -And I simply copied these values from Chrome Inspector where they were working fine as well.

Is there a way to downgrade back to 2.3.3?

**I URGENTLY need to get this fixed as I'm already way behind schedule.

Thanks,

Rob

Site is still under development but here's the url: ultimatemasteringformula.com

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

Hi,

If you receive a Parse Error, this means that you have an error in your custom CSS. LESS CSS, is not as forgiving with errors like the standard CSS. Therefore, please review your custom CSS for any errors such as a missing:

{ } ; :

Once you have resolved your incorrect CSS, save your settings and the Parse error will be resolved.

Also, in future, please add any custom code to our paste service - http://paste.pagelines.com/

I have removed your code so the post is more readable.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
Simon    247
Simon

Thanks for searching before posting, just for you I'll repeat myself for the 3rd time.

All options should be filtered by wp kses before saving into the database but we whitelisted the CSS. Drawback was users could now enter HTML Javascript php in fact anything into the CSS box.. The last week or so we were plagued by users adding script tags into the CSS box and wp-admin would not load. I was getting daily emails asking for a fix so I enable the filter again.

Of course our testers didn't pick up nor did I that kses 'escapes' quotes and that chokes the compiler. So if the custom CSS is just that, CSS, then add it to the customise plugins css file where it belongs.

Share this post


Link to post
Share on other sites
robjonathanwilliams    0
robjonathanwilliams

Thanks, I apologize, I did search and read the other posts but didn't really understand what that meant -or how to fix it.

I've installed the customize plugin and moved all my code to there and now it's working again.

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

The topic was marked as resolved.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
Simon    247
Simon

Change line 489 of class.render.css.php to this:


$custom = stripslashes( ploption( 'customcss' ) );
[/CODE]

And its fixed.

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

    • jeremya
      By jeremya
      URL's are not updating when added to QuickSlider's "Slide LInk URL"? Any assistant would be appreciated. 
    • GOTO11
      By GOTO11
      Hi Nick,
       
      Second try to post this one, one more 'bug' i have found ;-)
       
      Hope to get a reply now soon.
       
      I experience a lot problems with the EVENTS section:
       
      Gravity form does not show up when i fill in the de ID number. The Single Event shortcode is very unclear to me. Nothing i put in seems to make any difference. The date icons do not turn blue as i hover over them like on the demo site The date icons icons won’t sort by month The event agenda doesn't scroll with mouse like in the demo. Shouldn't it be a good idea to have the month also noted in the single-event? www.goto11events.nl
       
      Thanks!
       
      Frank
    • janpeeters
      By janpeeters+
      Over the last month I had extensive communications with the developer of the (premium) Anything Boxes section (in Pagelines store) (Adam Munns) and the developer of the WP Polylang Multilingual plugin (Frederic Demarle).
       
      This was because the following problem occurred:
      Anything Boxes showed all posts of two languages (Dutch and English) on the respective static frontpages for each language. It should of course have filtered posts for Dutch language on the Dutch frontpage and English on the English frontpage.
       
      The solution to this problem was simple in the end. When duplicating a page for use in another language the settings for Anything Boxes were not copied to the new page and I should have set these settings manually again on the new page. I wasn't aware of this, but it makes sense. Because of this the pages didn't know how to differentiate between posts from different languages.
       
      The dev of Polylang told me that Polylang is currently smart enough to synchronize metas like Featured images and page templates but it does not work out of the box with metas created by plugins and themes but (according to Frederic) it is rather easy to add them in the list using the filter 'pll_copy_post_metas'.
      He mentions that he is not sure that these 'PageLines Meta Settings' are stored in post meta but that would make sense according to him. He asks if the Pagelines dev team will be interested to support this feature in the future.
       
      I'm also wondering if you will consider adding Polylang translation support for manually editable strings like the 'Read more…' strings in Pagelines Settings.
       
      Well that's of course up to you but I thought to let you know to be able to take this into consideration. I also post this for other users in case they experience the same kind of trouble and are looking for an answer.
       
      Best regards,
      Jan Peeters
    • bankrollbuilder
      By bankrollbuilder
      I used a custom hook to put a banner ad in my header. It works but its not in the right position. it is centered and above my logo and I would like to float it to the right of my logo in the header. heres the link: http://shaboopie.com/shaboopie-wp/free-logos-pg1/

      thanks.

      Dan B.
    • starlit
      By starlit
      Can one have two hero sections on one page?

      I want a landing page which leads/advertises two subpages.

      Or is there another option?

      Please help.

      THANK YOU
×