Public Ticket #3595271

Badges coming out blurry.

Closed
Comments
56 Tickets 59
Anthony O Connell started the conversation 3 years ago on February 28, 2024 at 9:08pm

Hi guys

I want to add badges to vendors who upload verification documentation to me.

I uploaded a badge onto my page but it is coming out pixelated.

Can we fix this?

Thank you.

56 Tickets 59
Anthony O Connell replied 3 years ago on February 28, 2024 at 9:15pm

I had the badge on but I disabled it as it did not look good. 

We had looked at this before and you had provided a php snippet ad it worked before but not so much now. 

56 Tickets 59
Anthony O Connell replied 3 years ago on March 4, 2024 at 8:35pm

Thank you. 

That seems to have done the trick.

Is their another way I can  change the size of the profile picture or move the store name underneath it?

2,762
KingsPlugins replied 3 years ago on March 5, 2024 at 5:03am

Do you mean here?

7240000100.png


Changes could only be made with custom CSS. Generally you may be able to say get the text to the right side and perhaps increase the profile image.

I do not really have an easy way to do it though, it would be best to work with a designer or developer.

1
56 Tickets 59
Anthony O Connell replied 3 years ago on March 5, 2024 at 4:14pm

Also, would there be a way to automatically add a banner when someone signs up? I find vendors tend to put in a profile picture while forgetting to put in a banner which does not look aesthetically pleasing.

2,762
KingsPlugins replied 3 years ago on March 7, 2024 at 5:53am

You can generally use this snippet to auto set a banner image when a vendor first registers:

add_action('user_register', 'set_custom_user_meta_on_registration', 10, 1);
add_action('woocommerce_created_customer', 'set_custom_user_meta_on_registration', 10, 1);
function set_custom_user_meta_on_registration($user_id) {
    // Check if the user meta already exists to avoid overwriting it if the user is updated
    if (!get_user_meta($user_id, 'marketking_profile_logo_image_banner', true)) {
        // Set the user meta for the new user
        update_user_meta($user_id, 'marketking_profile_logo_image_banner', 'https://site.com/img.png');
    }
}

You would need to set the image link in the snippet.

Sign In