Home Forums Theme Support Dokan Thumbnail Grid Image Height

This topic is: resolved

This topic contains 13 replies, has 4 voices, and was last updated by  towhid 3 years, 7 months ago.

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #70225

    Julie
    Member
    Post count: 8

    I moved my dokan licence, on the old site the thumbnails were of different heights on the new site they are all the same height

    Please seegoodgrid-badgrid

    I have looked everywhere but simply cannot work out where to set the grid so the height is staggered

    Your help is much appreciated
    Julie

    #70284

    Julie
    Member
    Post count: 8

    Its a woocommerce setting not dokan

    #70385

    towhid
    Participant
    Post count: 4505

    Hello Julie,

    Please navigate to wp-content/themes/wedevs-dokan/front-page.php and find this line of code.

    <div class="slider-container woocommerce">
                        <h2 class="slider-heading"><?php _e( 'Latest Products', 'dokan' ); ?></h2>
    
                        <div class="product-sliders">
                            <ul class="slides">
                                <?php
                                $latest_query = dokan_get_latest_products();
                                ?>
                                <?php while ( $latest_query->have_posts() ) : $latest_query->the_post(); ?>
    
                                    <?php wc_get_template_part( 'content', 'product' ); ?>
    
                                <?php endwhile; ?>
                            </ul>
                        </div>
                    </div> <!-- .slider-container -->

    To change the latest product container, please customize the above code.

    Thanks

    #70994

    Shariful
    Member
    Post count: 12

    Hi I am also having this problem …

    I have no control over product thumbnail highlight.. at the moment they are all odd sizes and seem to not look very good.

    please view the website in question from the link below:

    http://www.geeweez.com/dev/

    CAN YOU PLEASE HELP i have tried the hard crop method in woocommerce however this did not work along with trying a plugin called : Regenerate Thumbnails.

    Can you tell me how i can make all the product heights on the home page one size.

    However i did not understand the action above you wish for me to take in order to fix this can you please explain..

    #71020

    towhid
    Participant
    Post count: 4505

    Hello Shariful,

    Can you please create a different topic. Because it is hard to keep track and provide a solution.

    Thanks

    #71021

    Shariful
    Member
    Post count: 12

    Not sure how to create a different topic in this support area…??

    #71231

    kenneth
    Member
    Post count: 170

    to solve this issue, pls make sure the height of your images are at least 500px and above. hope it helps.

    #71268

    Shariful
    Member
    Post count: 12

    Hi Kenneth, Thank you for your comment, I'm afraid i was looking for a solution that over rights the thumbnail image no matter what size is uploaded. Kind of like a Hard crop Woocommerce have, for some reason this seems to not work with the Dokan theme.

    The point to this is I am making a multi vendor site and therefore have no control over the product images the traders upload. This is why I was hoping Dokan support would help me with a method to fix the height on the homepage product display of my site.

    http://www.geeweez.com/dev

    Towhid from Dokan support started to explain this in the above replies but I'm afraid I did not understand the edit that needed to be made to the code he referenced.

    #71503

    towhid
    Participant
    Post count: 4505

    Hello Shariful,

    Please provide your login details(also FTP) by using this form: http://wedevs.com/provide-login-details/. I will have a look what is going wrong.

    Thank you ๐Ÿ™‚

    #71511

    kenneth
    Member
    Post count: 170

    Hi Shariful, I do understand your concern and it's really hard to standardize the image sizes across the marketplace. Let's hope towhid can give us a better solution on this ๐Ÿ™‚

    #71722

    Shariful
    Member
    Post count: 12

    Hi Towhid,

    I have sent a reply back to you with regards to the site login details along with FTP details.

    If you can please let me know of your findings.

    Kind Regards
    Sharif

    #71742

    towhid
    Participant
    Post count: 4505

    Hello Shariful,

    You can upload any image if you want. But image height and width ratio must be same. An image scale beyond it to maintain it's aspect ratio.

    Or, you can insert this line of code in your theme's style.css file.

    img.attachment-shop_catalog.wp-post-image {
        height: 180px !important;
        width: 200px !important;
    } 

    Hope it will help you to get rid of your problem.

    Thanks

    #71870

    Shariful
    Member
    Post count: 12

    Hi Towhid,

    Thank you for your reply and yes the code worked perfect. Thank you for all your help on this matter.

    I did have a second question hope you do not mind me using this post box to bring it up. I wanted to know if it would be possible to make edits to the product upload process each use go's over when adding the product.

    I needed to add a check box on the shipping tab to also point out if the product can be collected at a pick up point.

    Or would it be possible to have all the extra input tabs when adding a product to be on one page?

    thanks

    #72008

    towhid
    Participant
    Post count: 4505

    Hello Shariful,

    I did not understand your second question clearly. Can you please elaborate the question with some screenshot?

    Thanks

Viewing 14 posts - 1 through 14 (of 14 total)

The topic ‘Thumbnail Grid Image Height’ is closed to new replies.