、したがってプラグインと競合し、それが働いて形成防止されるジャバスクリプトが存在しなければなりません。これを行うには、コンソールにエラーがあるかどうかをチェックします。ここをクリックしてくださいhttps://codex.wordpress.org/Using_Your_Browser_to_Diagnose_JavaScript_Errors
おそらく、それは私たちのテーマと互換性がありませんあなたが使用しているテーマと互換性がありません。親切にテーマを無効にして、WordPressのデフォルトテーマ(WordPress 2017テーマ)で試してみましょう。 2番目の質問については
: 何をあなたの子供をテーマにWooCommerceフォルダにシングルproduct.phpテンプレートをコピーされて行うことができます。このような正確な条件タグとsingle_templateまたはtemplate_includeを使用し、その後、ファイル名を変更し、ファイルを変更します。
single_template
function get_custom_post_type_template($single_template) {
global $post;
if ($post->post_type == 'product') {
$single_template = dirname(__FILE__) . '/single-template.php';
}
return $single_template;
}
add_filter('single_template', 'get_custom_post_type_template');
template_include
add_filter('template_include', 'portfolio_page_template', 99);
function portfolio_page_template($template) {
if (is_page('slug') ) {
$new_template = locate_template(array('single-template.php'));
if ('' != $new_template) {
return $new_template ;
}
}
return $template;
}