Okay
  Public Ticket #3595271
Badges coming out blurry.
Closed

Comments

  •  21
    Anthony O Connell started the conversation

    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.

  •  21
    Anthony O Connell replied

    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. 

  •  1,885
    WebWizards replied

    Hi Anthony,

    I looked into that and it seems the Jetpack plugin is reducing the image quality based on the 'speed up image load times' setting here:

    https://flexitime.ie/wp-admin/admin.php?page=jetpack#/performance

    1993852254.png


    When that is disabled, images show as intended.


    Kind regards,

    Stefan

  •  21
    Anthony O Connell replied

    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?

  •  1,885
    WebWizards replied

    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.

  •   Anthony O Connell replied privately
  •  21
    Anthony O Connell replied

    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.

  •  1,885
    WebWizards replied

    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.