It’s best to not send access to your site to strangers on the internet ??
However, since it’s custom I would suggest that you use a conditional check for dark mode to switch the photo you use. Something like this should work:
add_action( 'init', 'check_dark_mode' );
function check_dark_mode() {
// note the $is_dark_mode variable is not a real variable that will return anything. You'll need to replace that with something that checks to see whether the site is in dark mode or not.
if ( $is_dark_mode ) {
// Remove the image the plugin displays.
remove_action( 'wp_footer', 'fsb_display_image' );
// Add your own dark mode image
add_action( 'wp_footer', 'fsb_display_dark_image' );
function fsb_display_dark_image() {
// Replace with your own dark mode image.
$image = 'https://yoursite.com/wp-content/uploads/your-image.png';
if( is_ssl() ) {
$image = str_replace( 'https://', 'https://', $image );
}
echo '<img src="' . esc_url( $image ) . '" id="fsb_image" alt=""/>';
}
}
}
In the plugin you’ll add the white mode image to the plugin’s settings. The code above will check if the site is in dark mode. If it is in dark mode, the code removes the action that displays the image from the plugin’s settings. Then it adds a new image using the code, which should be the image you want in dark mode.
Give that a try and let me know if you need any other assistance with it.