Change which images are used for category-pages
-
Hello,
At present, my site takes the images it uses on Category pages from the Product image on the Product Page. Can I change which images it uses or where it gets them from?
My images are distorted on the Category page because the placeholder has different dimensions to the image on the Product page.
I think I can see the CSS that is used to get the images at:-
OceanWP Child: content-category-product.php (woocommerce/content-category-product.php)
as:-
$image = wp_get_attachment_image_src( get_post_thumbnail_id( $product_id ), ‘single-post-thumbnail’ );
but I’ve got no idea if this is really the right place or the right code or what to change it to.
In my old Dreamweaver I could create a folder with special images in it and point each link to that folder. Could something similar work on WP?
Thanks (again!)The page I need help with: [log in to see the link]
- The topic ‘Change which images are used for category-pages’ is closed to new replies.