Home › Forums › WoodMart support forum › Remove Featured Image from Single-product Page
Remove Featured Image from Single-product Page
- This topic has 2 replies, 2 voices, and was last updated 8 months, 1 week ago by Hung Pham.
-
AuthorPosts
-
April 2, 2024 at 7:15 pm #554333
skibinskiyParticipantHi guys
I have a problem removing a Featured image which is used for Thumbnails on our client’s website and want to show only Gallery images on the Single-product page.
The code I wrote and inserted into child’s functions.php is below
add_filter('woocommerce_single_product_image_thumbnail_html', 'remove_featured_image', 10, 2); function remove_featured_image($html, $attachment_id ) { global $post, $product; $featured_image = get_post_thumbnail_id( $post->ID ); if ( $attachment_id == $featured_image ) $html = ''; return $html; }
Currently it loads the image only in the thumbnail on the left vertical thumbs view but does not load it into carousel for the product page which is good but when you click the thumbnails it skips the current thumbnail image and renders/shows the next thumbnail image in a row so let’s say we accomplished a half-job here, not everything.
Link to our staging shop’s product page is here:
https://staging.leador.ro/butic/inel-vintage-din-aur-de-18k-si-platina-cu-safir-si-diamante-naturale92574/
1. First thumbnail with a ring in top left needs to dissapear from carousel
2. Clicking on thumbnails opens the correct thumb in a carousel element on the right, not skipping one as it is currently.
ThanksI see that theme developers do not have any aspirations of implementing this functionality in next update as this is globaly very much often used functionality for well optimized shops where you use Featured image only as an archive page thumbnail and nothing else and gallery images as a product image carrousels or whatever.
Is there anyone out there that managed to fix this and make it work as I only did a half-way job on our project and we would really like to have it fully-functional before releasing the live website in couple of days from now.
Any help from Theme developers is much appreciated as well from the community.
komodoApril 2, 2024 at 7:21 pm #554336
skibinskiyParticipantalso,
Is there a way to add the “read more” or just “more” tag to a category description and possibly cut it into 2 lines only or any other variation?
attaching the screenshot belowAttachments:
You must be logged in to view attached files.April 3, 2024 at 11:49 am #554520
Hung PhamKeymasterHi skibinskiy,
Thanks for reaching to us.
Unfortunately, additional customization is outside the scope of our basic support. And there is no such an option to show read more button for description.
Regards,
-
AuthorPosts
- You must be logged in to create new topics. Login / Register