Chat with us, powered by LiveChat

WCMp bundle is available at a slashed price

Grab It Now

Store image dimensions change

Store image dimensions change2019-06-12T12:27:16-05:00

Home Support Forum Theme and Plugin Support Store image dimensions change

Theme and Plugin Support

Store image dimensions change Open

  • Author
    Posts
  • LolaLemans
    Participant
    Post count: 22

    Dear WC-Marketplace team,

    I was wondering if you could please help me to change the vendor/store picture size from (as is) 1200×390, into (to be) 600×390.

    The reason is that the current design (banner) seems to work well for brands/stores, but in my website the vendors are individuals (coaches, therapists…) and it is very difficult for an individual to show their face in a banner sized picture

    Thank you in advance for your help,
    Lola

  • Raju The Cool Guy
    Moderator
    Post count: 64

    @lolalemans, You can set the default image size as 600*390, by adding this code to the function.php of the current active theme :

    /**
    ** Change Image dimensions for storefront cover photo
    **/
    add_filter( 'wcmp_frontend_dash_upload_script_params', 'image_dimensions_change');
    function image_dimensions_change($image_script_params){
        $image_script_params['cover_ratio'] = array(600, 390);    // Change your wigth and hight as per your choice
        return $image_script_params;
    }
  • LolaLemans
    Participant
    Post count: 22

    Thank you so much!

    I have added the code to the functions.php of my child theme, but I get error “The site is experiencing technical difficulties.”

    There seems to be something wrong with the syntax

    Thank you in advance for your help

  • NerdySupportExpert Moumita
    Keymaster
    Post count: 3844

    @lolalemans, please remove the code we have shared.

    After that share a temporary admin, vendor and FTP access so we can check.

    While sharing the access, don’t forget to mark the response as private.

  • LolaLemans
    Participant
    Post count: 22
    This reply has been marked as private.
  • NerdySupportExpert Moumita
    Keymaster
    Post count: 3844
    This reply has been marked as private.
  • LolaLemans
    Participant
    Post count: 22
    This reply has been marked as private.
  • NerdySupportExpert Moumita
    Keymaster
    Post count: 3844
    This reply has been marked as private.
  • LolaLemans
    Participant
    Post count: 22
    This reply has been marked as private.
  • NerdySupportExpert Moumita
    Keymaster
    Post count: 3844
    This reply has been marked as private.
  • LolaLemans
    Participant
    Post count: 22
    This reply has been marked as private.
  • NerdySupportExpert Moumita
    Keymaster
    Post count: 3844
    This reply has been marked as private.
  • LolaLemans
    Participant
    Post count: 22
    This reply has been marked as private.
  • NerdySupportExpert Moumita
    Keymaster
    Post count: 3844
    This reply has been marked as private.
  • LolaLemans
    Participant
    Post count: 22
    This reply has been marked as private.
  • NerdySupportExpert Moumita
    Keymaster
    Post count: 3844
    This reply has been marked as private.

Please LOGIN to reply to this topic