Skip to content

Instantly share code, notes, and snippets.

@nayemDevs
Last active January 31, 2019 20:18
Show Gist options
  • Save nayemDevs/882cd30161100d4ac5032179ec837193 to your computer and use it in GitHub Desktop.
Save nayemDevs/882cd30161100d4ac5032179ec837193 to your computer and use it in GitHub Desktop.
icon missing
<?php
/*
- Missing icon fixing
- fontawesome v5
- Use the code from line number 7 to 12 on your child-theme functions.php
*/
add_filter ('dokan_get_dashboard_nav','change_icon',16);
function change_icon($urls){
$urls['reviews']['icon'] = '<i class="fas fa-comments"></i>';
$urls['reports']['icon'] = '<i class="fas fa-chart-line"></i>';
return $urls;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment