Home Forums WoodMart support forum Remove Featured Image from Single-product Page

Remove Featured Image from Single-product Page

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #554333

    skibinskiy
    Participant

    Hi 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.
    Thanks

    I 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.
    komodo

    #554336

    skibinskiy
    Participant

    also,
    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 below

    Attachments:
    You must be logged in to view attached files.
    #554520

    Hung Pham
    Keymaster

    Hi 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,

Viewing 3 posts - 1 through 3 (of 3 total)