Never took the time to dissect Three.js gallery code ā I used to just grab it and make it work, since I know the craziness of Three.js. But this is the first time Iām really digging into it and adding new features to the Three.js gallery:
Video autoplay
GIF support
WordPress image uploads (automatic)
Easily handles 1000+ images with video without killing the browser (will add and test soon)
found new natak not loading 2025 all images and video. even url works fine when copy paste at url but not showing image using browsers so later found simple file name
// Add this to your plugin - automatically fixes dots in uploaded filenamesadd_filter('wp_handle_upload_prefilter','dgc_auto_fix_upload_filename');functiondgc_auto_fix_upload_filename($file){$filename=$file['name'];// Replace all dots in filename (except the last one for extension)$last_dot=strrpos($filename,'.');if ($last_dot!==false) {$name=substr($filename,0,$last_dot);$ext=substr($filename,$last_dot);// Replace dots with hyphens in the name part$fixed_name=str_replace('.','-',$name);$file['name'] =$fixed_name.$ext;}return$file;}// Also fix when uploading via media libraryadd_filter('wp_handle_sideload_prefilter','dgc_auto_fix_upload_filename');
function remove_customize_register() { global $wp_customize; $wp_customize->remove_section( 'colors' ); //Modify this line as needed } add_action( 'customize_register', 'remove_customize_register', 11 );
This website stores cookies on your computer. These cookies are used to provide a more personalized experience and to track your whereabouts around our website in compliance with the European General Data Protection Regulation. If you decide to to opt-out of any future tracking, a cookie will be setup in your browser to remember this choice for one year.