Before you ask please READ THIS

Changing icomoon icons

in Photon Posts: 48
Hi Air,
I tried to change tihis .icon-bag:before {content: "\e106";}

for this .icon-cart:before {content: "\e93a";} (https://icomoon.io/app/#/select)

but something going wrong.

I download files of e93a and put them into "fonts", made changes in icomoon.css, but icon did't changed.

May you advise me how i can change icon and the rest of the icons will not disappeared.

Thank you =)


Comments

  • AirAir
    edited February 2017 Posts: 10,970
    Hello:-)

    Could you add some link to where it happens, cause I have no idea what might be wrong just from description.

    With kind regards.
    Post edited by Air on
  • Posts: 48
    Hello,

    1) I have downloaded {content: "\e93a";} (https://icomoon.io/app/#/select) (shop cart
    (icomoon.eot icomoon.svg icomoon.ttf icomoon.woff)
    2) i have renamed (icomoon.eot icomoon.svg icomoon.ttf icomoon.woff) to (icomoon1.eot icomoon1.svg icomoon1.ttf icomoon1.woff) and put them into photon-13/fonts
    3) Then i edited icomoon.css

    src:url('../fonts/icomoon1.eot?rsu7yx'); src:url('../fonts/icomoon1.eot?#iefixrsu7yx') format('embedded-opentype'), url('../fonts/icomoon1.woff?rsu7yx') format('woff'), url('../fonts/icomoon1.ttf?rsu7yx') format('truetype'), url('../fonts/icomoon1.svg?rsu7yx#icomoon') format('svg'); ..... .icon-cart:before { content: "\e93a"; }

    4) All icons disappeared.

    Maybe i have done something wrong? I just wanted to change only 1 icon.

    Now i returned all the changes.

    Thank you Air!


  • AirAir
    Posts: 10,970
    If I understand right you have use your new font under same font-name(font-family in CSS) right? If yes, then you have overwritten previous definition of font. However I would have to see it live to be sure.

    With kind regards.
  • Posts: 48
    At first I wanted to make a file with all fonts (the default themes + new) but i didn't found all default themes fonts here (https://icomoon.io/app/#/select).

    Then I wanted to connect in parallel (fonts) .... i added new files in hosting..... i renamed urls in css file (/fonts/icomoon ----- /fonts/icomoon1) add number 1... It didn't worked for me.

    I simply want to change 1 default theme icon.

    Thank you Air.

  • Posts: 48
    Right now i can't do it to show you, as i have some visitors ...
  • AirAir
    Posts: 10,970
    Yes you changed filename but you didn't change font name like I said in my previous post. That is why you overwritten default iconmoon set.

    With kind regards.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!