• Closed
  • Meshal
    Spectator
    May 19, 2015 at 11:09 am #17569

    Everytime I update my custom css I loose the backslash “\” from content: “\f07a” in custom css:
    .rtl .myaccount_user_container .view-cart a:after {
    font-family: IcoMoon!important;
    content: "f07a";
    }

    So instead of showing shopping cart icon it will show f07a then I need to add the backslash again.
    Any idea ?

    Roman
    Spectator
    Posts: 3147
    May 19, 2015 at 8:30 pm #17582

    try this:

    content: '\f07a';

    Meshal
    Spectator
    Posts: 30
    May 20, 2015 at 6:48 am #17591

    Same thing. It will disappear after update.

    Anonymous
    Inactive
    Posts: 49
    May 20, 2015 at 11:01 am #17603

    Try this:
    content: "& #092;f07a";
    Make sure there is no spaces between & and #.

    Meshal
    Spectator
    Posts: 30
    May 20, 2015 at 3:10 pm #17644

    If I update once it will show & #092;f07a, If I update once more it will show the shopping cart but if update for the third time it will disappear again. (I have removed the space between & and #)
    This character need to be escaped by php !

    Roman
    Spectator
    Posts: 3147
    May 20, 2015 at 8:20 pm #17660

    yes it is…for security reasons..I would recommend to create a child theme and insert this code right in the style.css of the child theme…problem solved