PHP
48
CSS force to load at clientside - php modify date - less css version By micha on 10th July 2019 01:05:47 PM
- /*
- * VARIANT 1
- * Force to reload stylesheet -> filename.min.css?v=1.x // use the "version" parameter
- */
- $path = get_template_directory_uri();
- $version = '3.25';
- /*
- * VARIANT 2
- * Autodetect modify date of file
- * PHP (filemtime): https://www.php.net/manual/de/function.filemtime.php
- */
- $css_desktop = get_theme_file_path('css/desktop.min.css');
- }
- $css_tablet = get_theme_file_path('css/tablet.min.css');
- }
- $css_mobile = get_theme_file_path('css/mobile.min.css');
- }
Recent Pastes