Tagged: x
-
AuthorPosts
-
October 20, 2016 at 8:10 pm #1224733
Simon TParticipantHi There,
I am in the process of uploading all the images to my online store. I have enabled the lightbox for product images in the WooCommerce settings, so I’m wondering why some of my products have a gray border around them and some do not? If you go to the link, you’ll notice for example that the cricket bags have borders but the clothing do not: http://sportingedge.co.nz/shop
I’m also wondering if it’s possible to have links at the top of the product category pages so that customers can shop by brands? Currently I have the brands setup as tags but I don’t see any option to do this?
Any help would be greatly appreciated!
October 21, 2016 at 12:12 am #1224977
RupokMemberHi there,
If you want the border on other category, you can add this under Custom > CSS in the Customizer
.woocommerce.tax-product_cat .product-category.product img { border: 2px solid #e5e5e5; padding: 6px; }As it’s controlled by WooCommerce archive template, you need to change the template if you want to add links.
Thanks!
October 21, 2016 at 2:13 am #1225073
Simon TParticipantHi Rupok,
Thanks for that. It doesn’t need to be links, I have seen it on other X sites how you click ‘brand’ and it filters so only products with that brand as a tag display. Is this possible?
October 21, 2016 at 2:18 am #1225075
Rue NelModeratorHello There,
Thanks for updating in! You may use 3rd party plugins instead. You might be interested in this: https://wordpress.org/plugins/woocommerce-products-filter/
Hope this helps.
November 1, 2016 at 11:18 pm #1240231
Simon TParticipantHi Rue,
I’ve only just got around to adding this plugin. They provide a shortcode to add, but I’m not sure where to add this so it works on all pages? The shortcode is below:
[woof sid=”auto_shortcode” autohide=0 taxonomies=product_cat:9]
November 2, 2016 at 4:37 am #1240472
LelyModeratorHi Simon,
That code can be added on a text or raw content element. You may test it first on a test page before settings in on your shop page.
Hope this helps.
November 3, 2016 at 9:34 pm #1243256
Simon TParticipantHi Lely,
Sorry I should have been more clear. I know how to add the shortcode, but not entirely sure how I do this with my shop pages?
November 4, 2016 at 12:18 am #1243400
Paul RModeratorHi,
You can add this in your child theme’s functions.php
function woocommerce_filter() { if(x_is_product_index() || ){ echo do_shortcode('[woof sid="auto_shortcode" autohide=0 taxonomies=product_cat:9]'); } } add_action( 'x_after_view_renew__landmark-header', 'woocommerce_filter' );Hope that helps.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1224733 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
