Digital experiences for all disciplines
Forum Replies Created
-
Posted in: We hit Power Elite.
-
Hi, I have updated the theme, and I have modified the …
.woocommerce ul.products li.product figure {
height: 420px;
}It’s almost worked, however it adds the image below, so duplicates, if the image is less than 420px. Am I right in saying I need to edit a template to remove the duplicated image?
Please let me know details.
Regards,
Jamie
Hi, it doesn’t seem to work. I’ve tried …
.woocommerce ul.products li.product figure {
height: 44px;
}and also
.woocommerce ul.products li.product a img{min-height:377px;} /* you can change the height*/
But the problem is when the first product is the correct height it adds whatever height I add to the bottom, creating a lot of white space. Any other suggestions?
Thanks,
Jamie
Hi Kyle/Mohammad,
Thanks for the feedback. I will look into these and let you know. Ideally I’d just want the area the images sits in to be a fixed height, not the actual image. I don’t mind white space between an image and product title, just as long as the largest image displays correctly.
Please let me know if there is anything I can do to get this functionality?
Thanks,
Jamie
Yes Ed!! nailed it! thanks so much for this. Works a dream.
Cheers,
Jamie
Thanks Ed,
I’ve copied this over to the child theme but still the same! Is there no way to put “&post_type=product” this at the end?
Thanks for all your time on this.
Jamie
Hi Ed, I’ve added the function to my functions.php file in my child theme. I’ve attached the php file. Could you check I have done this correctly and included everything?
Is there anything else that needs to be included in the child theme?
Thanks, and sorry for the back and forth.
Jamie
Great stuff, thanks Kyle. Sorry for any confusion.
Cheers,
Jamie
Thanks Kyle,
I am wanting to change the search option in the header to show like this http://districity.com/?s=rick+owens+x+adidas&post_type=product
instead of like this http://districity.com/?s=rick+owens+x+adidas
I have a child theme and I was told to update the file located here /includes/swift-framework/sf-content-display/sf-header.php and change line 904 to
‘post_type’ => ‘product’,
I’m not sure how to include this in my child theme to make my request though, as the above relates to the parent theme. In my last attachment I sent you my child function.php file. Am I right in saying that the AJAX function in sf-header.php needs to be copied over to my functions.php file? If so please can you supply the correct code to do this.
Thanks,
Jamie
Ok!
I’ve attached my child functions.php file. Could you please add the ‘correct’ function for me so it works on the child theme?
Cheers,
Jamie
Hi Kyle,
I’ve updated the parent theme, activated it but this hasn’t updated the search.
I’ve removed the function in the function.php file in my Child theme also in case this was causing any conflicts. Again, using the parent theme the search still remains the same, even though the sf-header.php has been modified.
Any ideas?
Cheers,
Jamie
Hi Ed,
thanks for the reply. I managed to fix the problem showing brands, categories etc – http://districity.com/product-category/mens/accessories/
I’m just now waiting on some feedback on category mapping and then the site will be good to go. thanks for your help with things.
Happy to close this ticket
Cheers,
Jamie
Hi, Thanks for the reply. I updated the settings as you suggested but unfortunately it has affected my website.
It adds categories to the product pages instead of showing products. I want a top level category showing different refine by options.
I added the WooCommerce Layered Nav Filters and it still doesn’t show ‘Brand’, ‘Colour’ etc. Would you be able to look at it further for me?
Thanks,
Jamie
Ok thanks for the update. cheers,
Jamie
-
Posted in: We hit Power Elite.