If this tutorial is not what you were looking for, you still have any questions, suggestions or concerns - feel free to let us know. Please help us to serve you better!

Your Name

Your Email

Your Message (required)

captcha

Featured templates

OpenCart 2.x. How to manage Material Design icons

The following tutorial shows how to manage Material Design icons in OpenCart 2.x templates

OpenCart_2.x.How_to_manage_Material_Design_icons1

In order to replace demo icons with the needed ones you should perform the following steps:

  1. Inspect the icon using Firebug add-on for Firefox (or any other developers tool). Here you can find a detailed instruction on installing Firebug and working with it: Firebug. Mozilla Firefox plugin. In order to change the icon, locate the CSS rule where the icon is added:

    OpenCart_2.x.How_to_manage_Material_Design_icons2

    In order to replace a demo icon with a desired one, you need to change the content value in this CSS rule.

  2. Open your site files via FTP or File Manager in your hosting admin panel and navigate to the /catalog/view/theme/themeXXX/stylesheet directory. Locate the material-icons.css file. Here you can find the codes of all the available material icons.

  3. Select the needed icon and copy it’s code:

    OpenCart_2.x.How_to_manage_Material_Design_icons3

  4. Get back to your site and paste this code in the CSS rule mentioned above, add !important as well. If the code is added correctly, you will see the icon changed:

    OpenCart_2.x.How_to_manage_Material_Design_icons4

  5. Right click over the rule and select a Copy rule declaration option:

    OpenCart_2.x.How_to_manage_Material_Design_icons5

  6. After doing this navigate to catalog/view/theme/themeXXX/stylesheet/ directory again and open stylesheet.css file. Paste the rule to the bottom of the file and save the changes:

    OpenCart_2.x.How_to_manage_Material_Design_icons6

  7. Open your website and refresh the page.In some cases you will also need to clear your browser cache to see the changes.

You have successfully replaced Material Design icon in your OpenCart 2.x. template.

OpenCart_2.x.How_to_manage_Material_Design_icons7

Feel free to check the detailed video tutorial below:

OpenCart 2.x. How to manage Material Design icons