Tue. Jul 2nd, 2024

1. Magento. How to manage Font Awesome icons

1 min read

NOTE: We strongly recommend that you backup each file prior its editing.

  1. Right click the mouse and use ‘Inspect element’ tool to locate the CSS class for the icon to edit and copy the CSS class for the button.

    Magento_How_to_manage_font_awesome_icons_1

  2. Open the file with the css inspected rule from the server or computer using a code editor and look up the class code in it, as /skin/frontend/tm_themes/theme718/css/styles.css in our case.

    Magento_How_to_manage_font_awesome_icons_2

  3. The icon is set with content: “\f106”; code. You can use this Font Awesome icons reference in order to pick another icon and find its respective code value. Also, you can use search engines in order to find it.
  4. We will replace the current icon with the double up arrows. After clicking on the icon, we need to copy its Unicode.

    Magento_How_to_manage_font_awesome_icons_3

  5. Paste the Unicode copied from the FontAwesome site to your css rule content part in skin/frontend/tm_themes/themeXXX/css/styles.css so it looks like this:
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    .footer #back-top span::before {
        display: inline-block;
        font: normal normal normal 14px/1 FontAwesome;
        font-size: inherit;
        text-rendering: auto;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        transform: translate(0, 0);
        content: “\f106”;
        font-size: 45px;
        line-height: 40px;
    }
  6. Save the changes and refresh the site.

    Magento_How_to_manage_font_awesome_icons_4

July 2024
M T W T F S S
« Jun    
1234567
891011121314
15161718192021
22232425262728
293031