Viewing 6 posts - 1 through 6 (of 6 total)
  • Question

    #65992
    @chartan

    I have problems with the store icon (in several parts of the page): it always takes a wrong scaled icon. I have uploaded the store icon as a 200x200px png. Now on the page it loads a 135x150px version. Can you tell me why?
    See attached screenshot

    Answers

    #66066
    @chartan

    btw: where can I overwrite the plugin files? I tried to make changes in content-single-product.php and put it in:

    a) onesocial-child/bb-marketplace/woocommerce/
    b) onesocial-child/bb-marketplace/
    c) onesocial-child/bb-marketplace/templates/
    d) onesocial-child/woocommerce/

    Nothing worked. Or is it the wrong file for the single product page?

    #66203

    Anonymous
    @

    Hi @chartan, Please add this function to your child theme’s function.php

    
    add_filter( 'wc_get_template_part', array( $this, 'custom_filter_template_part' ), 11, 3 );
    
    public function custom_filter_template_part($template, $slug, $name) {
       if( 'single-product' == $name && 'content' == $slug ) {
          $template = get_stylesheet_directory(). "/woocommerce/{$slug}-{$name}.php";
       }
       return $template;
    }
    

    and use onesocial-child/woocommerce/ path for the file

    Regards

    #66212
    @chartan

    Thanks, I’ll try that
    And any idea why the store icon is inserted in the wrong dimensions?

    #66221

    Anonymous
    @

    Please let me clear one thing are you asking about single store / shop page?

    Regards

    #66233
    @chartan

    @pallavi: The image is wrong on:

    1) the shop header on single product pages
    2) on the main sellers page
    3) on the main stores page

    Almost everywhere except on the individual vendor shop pages (where the image is included as it is and not scaled at all)

Viewing 6 posts - 1 through 6 (of 6 total)
  • The question ‘Wrong Store Icons’ is closed to new replies.