You all know that recently Fontawesome upgraded their version to v5. They have changed the class name for multiple icons. For that reason, icons are not showing correctly on few plugins or theme with the Fontawesome v4.
Users are frequently getting this icon missing problem with Dokan and few themes. ReHub is one of the best Dokan compatible theme which is using Fontawesome v5. For that reason, few icons are missing from the vendor dashboard like as – Reviews, Reports, Coupons etc.
If you are using the ReHub theme with Dokan or any other theme which is using Fontawesome 5 then you should get the below scenario –
How to fix?
This issue is ocurring because Dokan plugin is using Fontawesome v4 and the theme is using Fontawesome v5. For that reason, few icons are getting the correct class name. Because on the new version most of the classes of Fontawesome start with “fas fa-comments” or “fab fa-gratipay” while it was like fa fa-comments in version 4.
To fix this icon in Dokan you may need a child theme. Because on the core file of Dokan it coded like this –
So, we are unable to modify on the core else, it will be erased on next release of Dokan-lite/pro.
Now, please open your child-theme functions.php and use the below code –
After that just reload the vendor dashboard page and you will see that icons are back 🙂
Which theme is Dokan compatible?
You can check for more from here.