Change default image on the shop page
I changed the default image here : [Links visible only for registered users]
With this php code below.
How can in set the default image on the shop page ? [Links visible only for registered users]
add_action( 'init', 'custom_fix_thumbnail' );
function custom_fix_thumbnail() {
add_filter('woocommerce_placeholder_img_src', 'custom_woocommerce_placeholder_img_src');
function custom_woocommerce_placeholder_img_src( $src ) {
/*C'est ici que vous devez mettre l'url de votre image.*/
$url_nouvelle_image = "[Links visible only for registered users]
/*-------------------------*/
$src = $url_nouvelle_image;
return $src;
}
}
Comments
Hi,
Sorry, but what you ask for requires file customization which in reference to the Item Support Policy is not allowed. [Links visible only for registered users]
So if you want to modify files and don't know how, you should contact your web developer. Item Policy says:
Item support does not include services to modify or extend the item beyond the original features, style, and functionality described on the item page. For customization services that will help you tailor the item to your specific requirements, we recommend contacting the author to see if they privately offer paid customization services or checking out the great service providers on Envato Studio.
Or you can ask for help on our FB group:
[Links visible only for registered users]
Thanks