Jump to content

theme.css is corrupted, and i can't edit it.


Recommended Posts

Hello, I am trying to modify the theme.css of my classic theme. But trying to open it gives me this error: The file you opened contains some invalid characters. Continuing to edit this file may corrupt the document.
You can also choose any other character encoding and try again.
This is the file: file ,and as you can see I have verified that it has invalid characters. This happens to me when opening it with the ubuntu text editor, with netbeans, and in both windows and ubuntu. I have also tried with the theme.css of another installation of prestashop and the same thing happens to me.How can i fix this? Greetings

Link to comment
Share on other sites

20 hours ago, dostoyevski said:

I am trying to modify the theme.css of my classic them

You should not edit theme.css - you will loose your changes with next Prestashop upgrade. Do your changes in custom.css file instead, this will keep stable.

Looking into your file it really contains wrong chars. Maybe you use wromng transfer type on FTP? Better replace this with the version from Prestashop and start working on custom.css.

grafik.png.565f7d7ea53abefb040cc59c34f0302e.png

Edited by JBW (see edit history)
Link to comment
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
×
×
  • Create New...