• Resolved mmlove17

    (@mmlove17)


    Hello,
    Please can you tell me, how to create my own Predefined Fields for social networks like Pinterest, Tik Tok and etc.

    I want to display it on fieldset user profile page or in some tabs, but I want to make it like icons with picture.

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi,

    You can create more custom fields from UsersWP->Form Builder->Account by using URL field type. You can set font awesome icon class name in the “Upload icon” option of the custom field. You need to click on the Show Advanced button to see this option. You can show them in the More info tab or on the users listing page by selecting it from the “Show in what locations?” option. If you want to show them with other social icons displayed then let me know as it will require adding via a filter in code. By default ‘Facebook, Twitter, Instagram, Linkedin, flicker, GitHub, youtube, WordPress will be displayed in a group on profile and users listing page even if you don’t select anything from the “Show in what locations?” option.

    Regards,
    Patrik

    Thread Starter mmlove17

    (@mmlove17)

    Yes i did it the way you write me, but yes I want to show them with other social icons. Please, tell me how to added to the filter in code.

    Thread Starter mmlove17

    (@mmlove17)

    Hello, I was able to add the icons.
    Now I’m making the user profile page, but I have a problem, the avatar doesn’t want to show. I’m editing the page with Elementor and tried to put it in two ways:

    1. field with shortcut: [uwp_user_avatar size=”180″ allow_change=”1″]
    2. direct with your built-in widget, using UWP->Avatar

    I see it as a registered user or maybe because I am an administrator, but when I open the account as a user I do not see it.

    my user profile link

    Hi,

    Please create a support ticket on our site https://userswp.io/support for further assistance. You can mention this support ticket URL too.

    Regards,
    Patrik

    Hi Patrik,

    Followed on previous discussions regarding this Issue.

    Can you please provide instructions on “If you want to show them with other social icons displayed then let me know as it will require adding via a filter in code”

    Thanks,
    SSLV

    Hi,

    Here is the code snippet which will add additional social icon for tiktok:

    add_filter('uwp_widget_button_group_args', 'uwp_widget_button_group_args_cb', 10, 1);
    function uwp_widget_button_group_args_cb($args){
        if(isset($args['fields']) && !empty($args['fields'])){
    	    $args['fields'] = 'facebook,twitter,instagram,linkedin,flickr,github,youtube,wordpress,tiktok';
        }
    
        return $args;
    }

    You can as much as social links you need from the form builder and add its key in the code above with comma-separated value. You can use this code in the functions.php file of the currently active theme or via the Code Snippets plugin.

    Let me know if you need more details on anything.

    Regards,
    Patrik

    The original request in this thread seems to be solved. According to our forum guidelines new questions (which even may have the same symptoms) should be made as new posts, so I’m going to close this thread now.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Create different social icon to show in fieldset’ is closed to new replies.