Change default image on the shop page

I changed the default image here : https://madameaubepine.fr/produit/alcoolature-chardon-marie/

With this php code below.

How can in set the default image on the shop page ? https://madameaubepine.fr/boutique/?mfn-template-id=564


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 = "https://madameaubepine.fr/wp-content/uploads/2022/11/Visuel-en-cours-de-creation.png";

     /*-------------------------*/

$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. http://themeforest.net/page/item_support_policy

    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:

    https://www.facebook.com/groups/betheme/


    Thanks

Sign In or Register to comment.