Hey again.
Great Theme, I have a few issues after updating though 🙂
1: Hiding featured image thumbnail on product page.
This is the code inserted on themes function.php
//***********
add_filter(‘woocommerce_single_product_image_thumbnail_html’, ‘remove_featured_image’, 10, 3);
function remove_featured_image($html, $attachment_id, $post_id) {
$featured_image = get_post_thumbnail_id($post_id);
if ($attachment_id != $featured_image) {
return $html;
}
return ”;
}
//********
2: Changing text on “Add to cart ” button.
//Add New Pay Button Text
add_filter( ‘woocommerce_product_single_add_to_cart_text’, ‘themeprefix_cart_button_text’ );
function themeprefix_cart_button_text() {
return __( ‘Læg i Kurv’, ‘woocommerce’ );
}
3: Adding a custom text directly under “Add to cart” button
//**
add_action( ‘woocommerce_after_shop_loop_item’, ‘wc_custom_text_below_add_to_cart’ ); Archive pages
add_action( ‘woocommerce_after_add_to_cart_button’, ‘wc_custom_text_below_add_to_cart’ ); Single product page
function wc_custom_text_below_add_to_cart( $html ) {
echo ‘<div class=”extra-text”><p>Bemærk! Vi udarbejder og sender en digital korrektur med det ønskede produkt.<br>
Din bestilling er først bindende nÃ¥r du har godkendt denne.</p></div>’;
}
//*****
4: Changing the CSS for Add to cart button
My Custom CSS i theme settings is:
.single-product-content .cart .button {
background-color: #1070b8;
color: #ffffff;
border-color: #1070b8;
}
.single-product-content .cart .button:focus, .single-product-content .cart .button:hover {
background-color: #4c9bd6;
color: #fff;
text-decoration: none;
border-color: #4c9bd6;
}
And finally there are a few translation issues.
I have translated these using Loco Translate – in version 3.2.0 they are still in english.
1: Quick view tooltip
2: Shopping Cart pop-in header
Attachments:
You must be
logged in to view attached files.