BuddyBoss Home – Web › Support Forums › Solutions › Social MarketPlace › Wrong Store Icons
- This topic has 5 replies, 2 contibutors, and was last updated 8 years, 7 months ago by Christoph.
Question
March 30, 2016 at 5:48 am #65992@chartanI 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 screenshotAnswers
March 30, 2016 at 7:44 am #66066@chartanbtw: 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?
March 31, 2016 at 1:53 am #66203@
AnonymousHi @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 fileRegards
March 31, 2016 at 3:10 am #66212@chartanThanks, I’ll try that
And any idea why the store icon is inserted in the wrong dimensions?March 31, 2016 at 4:29 am #66221@
AnonymousPlease let me clear one thing are you asking about single store / shop page?
Regards
March 31, 2016 at 5:35 am #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 pageAlmost everywhere except on the individual vendor shop pages (where the image is included as it is and not scaled at all)
- The question ‘Wrong Store Icons’ is closed to new replies.