Lucas Pusset

CSS d'affichage et de masquage de l'image initiale

				
					.all-images{
    display: none;
}
#red-image{
    display: block;
}
				
			

Attribut de données du bouton

				
					data-showme|IMAGE-ID-NAME

				
			

Image dynamique Cacher/Afficher JS

				
					<script data-minify="1" src="https://lucas-pusset.fr/wp-content/cache/min/1/jquery-3.6.0.min.js?ver=1671728192" defer></script>
<script>window.addEventListener('DOMContentLoaded', function() {

var $ = jQuery
$(document).ready(function(){
    $('[data-showme]').on('click', function(){
        var showme = $(this).attr('data-showme')
        
        $('.all-images').hide()
        $('#' + showme).show()
    })
})
});</script>