• Resolved EditionsLVA

    (@editionslva)


    Hello,
    I need to put custom CSS using unicode characters like :
    .icon-flickr:before { content:”\f16e”; }

    But if I put it in the custom CSS form in the backend, the backslash is not properly saved in the database (slashes are stripped even if I put two \\). Is there a workaround without modifiying css file directly
    thanks?

Viewing 8 replies - 1 through 8 (of 8 total)
  • That’s strange as that should not happen – are you using a plugin for the custom css? Whats the website url?

    Thread Starter EditionsLVA

    (@editionslva)

    yes it is a template from templatemonster.com : the theme is based on cherry framework but I tried on another theme and it is the same problem :
    If you put 2 backslashes the first one is removed, then the next time you edit the custom css you will have to put it again.
    I don’t find this amazing : backslash is used to protect special character in PHP so it is normal to remove them when saving the form input.

    are you doing this on the admin editor or ftp?

    Thread Starter EditionsLVA

    (@editionslva)

    admin editor of course : (see above : “custom CSS form in the backend”)
    I think this way it is not possible : I need to change css style sheet and FTP. It is not a major problem but I was looking for a way to avoid changing anything in the theme files.

    Yeah sorry lazy reading… can you try a custom css plugin as well if you havent – eg like custom CSS manager plugin

    Thread Starter EditionsLVA

    (@editionslva)

    It seems to work : thank you

    you’re welcome – don’t forget to mark it as resolved

    Thread Starter EditionsLVA

    (@editionslva)

    Notice you need to put 2 backslashes in the form’s textaearea input but the first one is not removed when displayed again after saving (but the css has only one so it’s OK)

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘How to insert backslash in custom CSS form’ is closed to new replies.