Storefront Corrupt After Invalid Custom Css In Visual Editor

Hello guys.

I wanted to change my buttons colors with custom css through visual editor but the storefront got corrupted and it says that as an error: "LESS parse error: unclosed block"

So i guess I just forgot to close a block.

But, the visual editor is not loading anymore.

What can i do to restore my website in the previous state?

Is this custom css somewhere written in a file?

.something {
something ;
}

stuff in bold in important for LESS structure..


If front end is not accessible then go to

admin.php?dispatch=templates.manage

responsive / styles / data

find style you'r using and make change to what you added via viasual editor..

Darius is right. Just correct the less file manually in the following directory

design/themes/THEME/styles/data/

Thank you guys, I solved it!

Another problem appearred to me. The visual editor cannot save the changes I make. It returns to the default.

The error says something for an "ajax_error".

Also, I cannot edit my blocks, I can only add new ones.

PS. I have changed my hosting last week.

It is hard to say without detailed examination. At first, try to delete the var/cache directory manually

Better consult, list your changes here prior adding them to visual editor. Maybe you are mixing css with less properites...

Thank you guys, I solved it!

Another problem appearred to me. The visual editor cannot save the changes I make. It returns to the default.

The error says something for an "ajax_error".

Also, I cannot edit my blocks, I can only add new ones.

PS. I have changed my hosting last week.

It is hard to say without detailed examination. At first, try to delete the var/cache directory manually

I tried the fix you proposed already but nothing got fixed..

Is it something with the hosting change?

Better consult, list your changes here prior adding them to visual editor. Maybe you are mixing css with less properites...

I just tried to save another color from the color picker, nothing weird I think.

In most cases visual editor does not work due to following issues

- javascript errors

- unclosed html tags in the code (e.g. in custom html blocks)

I see. Is there any way to find these kind of errors and solve them?

How to "debug"?