Adding a second button next to the shop button Woocommerc [closed]

Code is tested with 2019 theme. Open the functions.php file of your active theme and drop this code at end of the file. add_action( ‘woocommerce_after_shop_loop_item’, ‘wpse2019_add_pdf_download_button’, 10 ); function wpse2019_add_pdf_download_button() { global $product; if( $product ) { printf( ‘<a href=”https://wordpress.stackexchange.com/questions/329837/%s” class=”pdf-button button btn” role=”button”>%s</a>’, “YOUR PDF LINK HERE”, __( ‘DWONLOAD PDF’, ‘text-domain’ ) ); } … Read more

Clickable product image with hover effect

You can use some Javascript to trigger the click. For example: $(‘.product-thumb’).click(function(event) { var product_link = $(this).find(‘product-thumb-primary a’); // Don’t trigger a click on the existing link if(!event.target.href && product_link.length) { document.location.href = product_link.attr(‘href’); } }); Un-tested but that’s the basic logic.

Merge “description” and “additional informations” product tab

The callback used to render the “Description” tab is woocommerce_product_description_tab(), which simply loads the template file single-product/tabs/description.php. And for the “Additional Information” tab, the callback is woocommerce_product_additional_information_tab() and the template is single-product/tabs/additional-information.php. So if you want to merge the two tabs, you can copy the “relevant” contents from the template file, like so: add_filter( ‘woocommerce_product_tabs’, … Read more