Osclass Support Forums
Osclass plugin support => Business Profile Plugin => Topic started by: Дима Пупкин on February 03, 2022, 08:12:44 PM
-
how to change fa-icon twitter to odnoklassniki ?
-
I do not think this is available, I think better to replace icon with image or svg.
-
tell me how to do it?
-
Open plugin files (probably seller.php), remove icon, add own SVG, update stylesheet.
-
I'm trying to change the twitter icon
} else if($id == 'tw') {
return ($type == 'icon' ? 'fa-twitter' : __('Twitter', 'business_profile'));
to the odnoklassnikov icon } else if($id == 'ok') {
return ($type == 'icon' ? 'fa-odnolkassniki' : __('Odnoklassniki', 'business_profile'));
but the icon is not showing
-
What else needs to be changed to make it appear?
-
I'm trying to change the twitter icon } else if($id == 'tw') {
return ($type == 'icon' ? 'fa-twitter' : __('Twitter', 'business_profile'));
to the odnoklassnikov icon } else if($id == 'ok') {
return ($type == 'icon' ? 'fa-odnolkassniki' : __('Odnoklassniki', 'business_profile'));
but the icon is not showing
Please note that you have a syntax error.
It's either fa-odnoklassniki or fa-odnoklassniki-square
So it should be:
} else if($id == 'ok') {
return ($type == 'icon' ? 'fa-odnoklassniki' : __('Odnoklassniki', 'business_profile'));
Clean browser cache and refresh.
Hope it helps (I don't have access to the plugin).
-
unfortunately the icon is not displayed even if the cache is cleared :(
-
I am not aware such icon would be in font awesome 4.7 set
-
https://fontawesome.com/v4.7/icon/vk this icon also doesn't work when i set values
} else if($id == 'vk') {
return ($type == 'icon' ? 'fa-vk' : __('VK', 'business_profile'));
-
'fab fa-vk'
'fab fa-odnoklassniki-square'
'fab fa-odnoklassniki'
-
'fab fa-vk'
'fab fa-odnoklassniki-square'
'fab fa-odnoklassniki'
Thanks! everything is working