Tagged: x
-
AuthorPosts
-
December 12, 2016 at 10:34 pm #1290809
ClasstoglassParticipantHi,
I’ve seen a number of posts relating to the image sizes which are used by xtheme and I have another one.
I am trying to create a woocommerce grid using ‘The Grid’ and xtheme, when I display the grid in preview mode it looks ok but when displaying the page directly the image sizes are too large and are cropped.
Web page is http://www.classtoglass.com/our-wine-cellar/
I have added the following code to my functions.php file which I have copied from other threads but this does not seem to have worked.
// Do Not Remove Woocommerce Plugin Settings // ============================================================================= function x_woocommerce_donot_remove_plugin_setting(){ if ( ! is_admin() ) { return; } remove_filter( 'woocommerce_product_settings', 'x_woocommerce_remove_plugin_settings', 10 ); } add_action('init', 'x_woocommerce_donot_remove_plugin_setting'); // ============================================================================= // WooCommerce Short Thumbnail size change // ============================================================================= function x_woocommerce_shop_thumbnail2() { GLOBAL $product; $stack = x_get_stack(); $stack_thumb = 'shop_catalog'; $stack_shop_thumb = $stack_thumb; $id = get_the_ID(); $rating = $product->get_rating_html(); woocommerce_show_product_sale_flash(); echo '<div class="entry-featured">'; echo '<a href="' . get_the_permalink() . '">'; echo get_the_post_thumbnail( $id , $stack_shop_thumb ); if ( ! empty( $rating ) ) { echo '<div class="star-rating-container aggregate ">' . $rating . '</div>'; } echo '</a>'; echo "</div>"; } add_filter('init', function() { remove_action( 'woocommerce_before_shop_loop_item_title', 'x_woocommerce_shop_thumbnail', 10 ); }); add_action( 'woocommerce_before_shop_loop_item_title', 'x_woocommerce_shop_thumbnail2', 10 );Many thanks
PhilDecember 13, 2016 at 4:26 am #1291087
ChristianModeratorHey Phil,
This would require custom Grid setup which regretfully falls outside the scope of our support. You might want to contact our trusted partners who caters X setup and customization needs. Please see https://community.theme.co/custom-development/
The code you copied is different and will not achieve what you’re trying to do.
Thank you for understanding.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1290809 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
