Tagged: related products, woocommerce
Hi,
I’ve tried this code in the functions.php I’ve found in your forum. That doesn’t work for me.
function custom_related_products(){
?>
<script>
(function($){
$(document).ready(function(){
$(‘.related.products h2’).each(function() {
var text = $(this).text();
$(this).text(text.replace(‘Related products’, ‘Weitere Angebote’));
});
});
})(jQuery);
</script>
<?php
}
add_action(‘wp_footer’, ‘custom_related_products’);
Thanks for your help.
I found a solution with the plugin wt-woocommerce-related-products/
You can close the thread, thanks