WCMp bundle is available at a slashed price

Grab It Now

Store image dimensions change

Store image dimensions change2019-07-24T03:55:05-05:00

Home Support Forum Theme and Plugin Support Store image dimensions change

Theme and Plugin Support

Store image dimensions change Resolved

  • Author
    Posts
  • LolaLemans
    Participant
    Post count: 45

    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: 155

    @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: 45

    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: 5109

    @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: 45
    This reply has been marked as private.
  • NerdySupportExpert Moumita
    Keymaster
    Post count: 5109
    This reply has been marked as private.
  • LolaLemans
    Participant
    Post count: 45
    This reply has been marked as private.
  • NerdySupportExpert Moumita
    Keymaster
    Post count: 5109
    This reply has been marked as private.
  • LolaLemans
    Participant
    Post count: 45
    This reply has been marked as private.
  • NerdySupportExpert Moumita
    Keymaster
    Post count: 5109
    This reply has been marked as private.
  • LolaLemans
    Participant
    Post count: 45
    This reply has been marked as private.
  • NerdySupportExpert Moumita
    Keymaster
    Post count: 5109
    This reply has been marked as private.
  • LolaLemans
    Participant
    Post count: 45
    This reply has been marked as private.
  • NerdySupportExpert Moumita
    Keymaster
    Post count: 5109
    This reply has been marked as private.
  • LolaLemans
    Participant
    Post count: 45
    This reply has been marked as private.
  • NerdySupportExpert Moumita
    Keymaster
    Post count: 5109
    This reply has been marked as private.
  • NerdySupportExpert Moumita
    Keymaster
    Post count: 5109
    This reply has been marked as private.
  • LolaLemans
    Participant
    Post count: 45
    This reply has been marked as private.
  • Raju The Cool Guy
    Moderator
    Post count: 155

    Hi @lolalemans,

    Thanks for sharing the code. You did a lot, Already created a child theme!!

    However, your child themes style.css is not loading. Can you please check and let us know.

  • LolaLemans
    Participant
    Post count: 45
    This reply has been marked as private.
  • Raju The Cool Guy
    Moderator
    Post count: 155

    Hi @lolalemans,
    use this additional code to solve the issue.
    1.`.vendor-cover-wrap #vendor-cover-img {
    height: max-content;
    }`

    2.`.wcmp-cover-picture {
    width: 50%;
    }`

  • LolaLemans
    Participant
    Post count: 45
    This reply has been marked as private.
  • Raju The Cool Guy
    Moderator
    Post count: 155

    Hi @lolalemans,

    Kindly use the code below to fix the same.

    .vendor-cover-wrap #vendor-cover-img {
    height: max-content;
    }
  • LolaLemans
    Participant
    Post count: 45
    This reply has been marked as private.
  • Raju The Cool Guy
    Moderator
    Post count: 155

    Hi @lolalemans,
    you can get all your previous image from media library dashboard.

  • LolaLemans
    Participant
    Post count: 45

    Hi Raju, thank you for your message

    I did not mean an image of mine, I meant an image that was provided with the WC Marketplace plugin

    Would you kindly take a look a this: https://www.dropbox.com/s/62mlcsbkb7evsv3/StoreSettings_Storefront.png?dl=0
    it shows what I now see in Store Settings / Storefront?

    That’s not the way it used to look like when I initially installed the plugin

    thanks a lot for all your help

  • LolaLemans
    Participant
    Post count: 45
    This reply has been marked as private.
  • fjooissss
    Participant
    Post count: 3

    You can set the default image size as 600*390, by adding this code to the function.php

  • LolaLemans
    Participant
    Post count: 45
    This reply has been marked as private.

The topic ‘Store image dimensions change’ is closed to new replies.