Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Abhilesh

    (@johndoe23292)

    I have done this with below code but these link are not coming to frontend

    My client are using elementor widget to show these social icon but no sure why new icon links are not coming.

    add_filter(‘dokan_profile_social_fields’, function($fields) {
    $fields[‘tiktok’][‘icon’] = ‘tiktok ‘;
    $fields[‘tiktok’][‘title’] = ‘Tiktok ‘;
    $fields[‘spotify’][‘icon’] = ‘spotify ‘;
    $fields[‘spotify’][‘title’] = ‘Spotify ‘;
    $fields[‘bandcamp’][‘icon’] = ‘bandcamp ‘;
    $fields[‘bandcamp’][‘title’] = ‘Bandcamp ‘;
    unset($fields[‘gplus’]);
    unset($fields[‘flickr’]);

    return $fields;
    });

    Hello @johndoe23292 ,

    You are using the correct filter but that will work when you are using the default Dokan store. This is the right procedure to add a new social field –

    add_filter( 'dokan_profile_social_fields', function($fields) {
        $fields['website'] = array(
                'icon'  => 'globe',
                'title' => __( 'Website', 'dokan-lite' ),
            );
        return $fields;
    } );

    When you are using the Elementor to customize the store page those new fields will not work. If you want to add any new fields you have to do that through those files. As Elementor integration is one of our Dokan Pro features we are unable to discuss it further here. You can contact our support channel to get more information.

    Thank you ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can we add extra social link in vendor dashboard’ is closed to new replies.