0
모든 CSS를 하나의 파일로 병합하고 싶습니다. 수동으로 할 수는 있지만 마지막 인수 인 wp_register_style
을 이해하지 못합니다.Wordpress에서 CSS를 병합하는 방법
노트북에서 모든 CSS를로드합니다.
wp_register_style('desktop-small-css', get_template_directory_uri().'/css/desktop.small.css','','','(max-width:'.get_option($dynamo_tpl->name . '_theme_width', '1230').'px)');
wp_enqueue_style('desktop-small-css');
wp_register_style('tablet-css', get_template_directory_uri().'/css/tablet.css','','','(max-width:'.get_option($dynamo_tpl->name . '_tablet_width', '1030').'px)');
wp_enqueue_style('tablet-css');
wp_register_style('tablet-small-css', get_template_directory_uri().'/css/tablet.small.css','','','(max-width:'.get_option($dynamo_tpl->name . '_small_tablet_width', '820').'px)');
wp_enqueue_style('tablet-small-css');
wp_register_style('mobile-css', get_template_directory_uri().'/css/mobile.css','','','(min-width:'.get_option($dynamo_tpl->name . '_mobile_width', '580').'px)');
wp_enqueue_style('mobile-css');