我正在建立一个临时站点,以在更改生效之前对其进行测试,但是该站点的响应式设计无法正常工作。
我停用了所有插件,但是响应式设计在舞台上仍然无法正常工作。
我创建了原始网站的新本地副本,并一个接一个地添加了插件,并且响应式设计有效,因此插件不会破坏它。
我相信我已经将问题缩小为子主题目录中functions.php中的排队代码中出现的问题
function add_theme_scripts() {
$parent_style = 'Karma'; // This is 'twentyfifteen-style' for the Twenty Fifteen theme.
wp_enqueue_style( $parent_style,get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'Karma-child',get_stylesheet_directory_uri() . '/style.css',array( $parent_style ),wp_get_theme()->get('Version')
);
wp_enqueue_script( 'script',get_stylesheet_directory_uri() . '/js/script.js',array ( 'jquery' ),1.1,true);
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
wp_enqueue_script( 'comment-reply' );
}
}
add_action( 'wp_enqueue_scripts','add_theme_scripts' );
这是实时网站:www.alliancechemical.com
这是舞台站点:www.alliancechemical.com/staging
我希望当屏幕分辨率进入移动区域时,断点媒体查询将生效并进行css调整。