• Creator
    Topic
  • #17569

    Meshal
    Spectator
    Been thanked: 0 times

    Everytime I update my custom css I loose the backslash “\” from content: “\f07a” in custom css:

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

Viewing 5 replies - 1 through 5 (of 5 total)
Replies
  • Roman
    Keymaster
    Post count: 2542
    Been thanked: 29 times
    #17582 |

    try this:

    content: '\f07a';

    Meshal
    Spectator
    Post count: 30
    Been thanked: 0 times
    #17591 |

    Same thing. It will disappear after update.

    Anonymous
    Post count: 49
    Been thanked: 0 times
    #17603 |

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

    Meshal
    Spectator
    Post count: 30
    Been thanked: 0 times
    #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
    Keymaster
    Post count: 2542
    Been thanked: 29 times
    #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

Viewing 5 replies - 1 through 5 (of 5 total)
You must be logged in to reply to this topic.