In Magento, you can change the slider images on the home page by editing the slider block in the layout XML files and uploading new images through the Magento admin panel. Here are the steps to change the slider images on the home page:
Log in to the Magento admin panel and go to “Content” > “Elements” > “Blocks”
Look for the block that controls the slider on the home page. It may be named something like “Homepage Slider” or “Home Page Banner”
Click on the block to edit it, you will see the option to add/remove images from the slider in the backend.
Once you have removed the images, you can upload new images by clicking on the “Add Image” button.
Once you have added new images, you can change the order by dragging and dropping the images.
Save the changes and flush the cache
php bin/magento cache:flush
In case if you are using a third-party extension or a custom theme, the method to change the slider images may vary. You may need to check the documentation of the extension or theme.
It’s always good to take a backup of the current images and the layout XML files before making any changes, in case if you want to revert to the previous images.
Also, make sure the new images are properly optimized for web performance and are of the right size and resolution for the slider, to avoid any issues.