Viewing 5 posts - 1 through 5 (of 5 total)
-
AuthorPosts
-
April 16, 2018 at 10:13 pm #942786
Can you tell me why the shop page looks like this? All the divs are appearing on top of each other.
Also can the short description show?
Login information in the private area.
https://betterleadgen.com/shop/April 16, 2018 at 11:02 pm #942804Hi @janton1 ;
sorry to jump in.but have you added a “product image” ?April 17, 2018 at 12:20 am #942830Here is what I see but you can also check out at the link. Can you see how everything is on top of each other?
https://wp.me/a9J8aW-111
Thanks in advance for the help.April 17, 2018 at 7:04 pm #943216We are not using an image for these products is that required?
April 18, 2018 at 7:47 am #943475Hi,
Thank you for the info. It should display a placeholder image. Please add this code in the functions.php file.
add_action('init', 'after_theme_setup_placeholder_mod'); function after_theme_setup_placeholder_mod() { remove_action( 'woocommerce_before_shop_loop_item_title', 'avia_woocommerce_thumbnail', 10); remove_action( 'woocommerce_before_shop_loop_item_title', 'woocommerce_template_loop_product_thumbnail', 10); add_action( 'woocommerce_before_shop_loop_item_title', 'avia_woocommerce_thumbnail_mod', 10); } function avia_woocommerce_thumbnail_mod($asdf) { global $product, $avia_config; if(function_exists('wc_get_rating_html')) { $rating = wc_get_rating_html( $product->get_average_rating() ); } else { $rating = $product->get_rating_html(); //get rating } $id = get_the_ID(); $size = 'shop_catalog'; $thumbnail = get_the_post_thumbnail( $id , $size ); echo "<div class='thumbnail_container'>"; echo avia_woocommerce_gallery_first_thumbnail( $id , $size); if($thumbnail) { echo $thumbnail; } else { $placeholder = wc_placeholder_img_src(); echo '<img src="' . esc_url( $placeholder ) . '" />'; } if(!empty($rating)) echo "<span class='rating_container'>".$rating."</span>"; if($product->get_type() == 'simple') echo "<span class='cart-loading'></span>"; echo "</div>"; }
Best regards,
Ismael -
AuthorPosts
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.