Dark mode switch button turn to show/hide images

[ad_1]

Hello! I have created a dark mode button above 2 columns, which when toggled, only the contents of one of the columns will be visible. I achieved this by using black and white text colours, because when the screen goes dark, only the white text is visible, the black blends in and vice versa. However, I would like this to apply to the 2 images in the columns, so when I switch between light/dark mode, only one of the 2 images is shown. Is there a solution to this, can you help me? I don’t know html code, just copied from videos.

[ad_2]
1 Comment

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer