This topic contains a post which is marked as Best Answer. Press here if you would like to see it.
how to change fa-icon twitter to odnoklassniki
« on: February 03, 2022, 08:12:44 PM »
how to change fa-icon twitter to odnoklassniki ?

*

MB Themes

Re: how to change fa-icon twitter to odnoklassniki
« Reply #1 on: February 03, 2022, 09:09:19 PM »
I do not think this is available, I think better to replace icon with image or svg.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

Re: how to change fa-icon twitter to odnoklassniki
« Reply #2 on: February 03, 2022, 11:13:06 PM »
tell me how to do it?

*

MB Themes

Re: how to change fa-icon twitter to odnoklassniki
« Reply #3 on: February 04, 2022, 01:26:40 PM »
Open plugin files (probably seller.php), remove icon, add own SVG, update stylesheet.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

Re: how to change fa-icon twitter to odnoklassniki
« Reply #4 on: February 04, 2022, 01:59:55 PM »
I'm trying to change the twitter icon
Code: [Select]
  } else if($id == 'tw') {
    return ($type == 'icon' ? 'fa-twitter' : __('Twitter', 'business_profile'));
to the odnoklassnikov icon
Code: [Select]
  } else if($id == 'ok') {
    return ($type == 'icon' ? 'fa-odnolkassniki' : __('Odnoklassniki', 'business_profile'));
but the icon is not showing

Re: how to change fa-icon twitter to odnoklassniki
« Reply #5 on: February 04, 2022, 02:01:01 PM »
What else needs to be changed to make it appear?

*

Tango

  • ****
  • 214 posts
Re: how to change fa-icon twitter to odnoklassniki
« Reply #6 on: February 04, 2022, 03:26:31 PM »
I'm trying to change the twitter icon
Code: [Select]
  } else if($id == 'tw') {
    return ($type == 'icon' ? 'fa-twitter' : __('Twitter', 'business_profile'));
to the odnoklassnikov icon
Code: [Select]
  } 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:
Code: [Select]
  } 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).
« Last Edit: February 04, 2022, 03:28:33 PM by Tango »

Re: how to change fa-icon twitter to odnoklassniki
« Reply #7 on: February 04, 2022, 07:46:38 PM »
unfortunately the icon is not displayed even if the cache is cleared :(

*

MB Themes

Re: how to change fa-icon twitter to odnoklassniki
« Reply #8 on: February 04, 2022, 08:42:15 PM »
I am not aware such icon would be in font awesome 4.7 set
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

Re: how to change fa-icon twitter to odnoklassniki
« Reply #9 on: February 04, 2022, 08:58:38 PM »
https://fontawesome.com/v4.7/icon/vk  this icon also doesn't work when i set values
Code: [Select]
  } else if($id == 'vk') {
    return ($type == 'icon' ? 'fa-vk' : __('VK', 'business_profile'));

Marked as best answer by Дима Пупкин on February 07, 2022, 01:19:34 AM
*

Vlad7

  • ****
  • 244 posts
Re: how to change fa-icon twitter to odnoklassniki
« Reply #10 on: February 05, 2022, 05:07:02 PM »
'fab fa-vk'
'fab fa-odnoklassniki-square'
'fab fa-odnoklassniki'

« Last Edit: February 05, 2022, 05:10:22 PM by Vlad7 »

Re: how to change fa-icon twitter to odnoklassniki
« Reply #11 on: February 07, 2022, 01:19:27 AM »
'fab fa-vk'
'fab fa-odnoklassniki-square'
'fab fa-odnoklassniki'

Thanks! everything is working