2017-07-07 10 views
0

無効にする方法。WordPressの子テーマの機能を無効にする

add_theme_support('wc-product-gallery-zoom'); 
add_theme_support('wc-product-gallery-lightbox'); 
add_theme_support('wc-product-gallery-slider');  

wordpressの親テーマのfunctions.phpの子テーマからですか? 助けてください!

答えて

0

これはサポートを削除し、(子テーマは、そうでない場合は、親のテーマfunction.phpに入れて有効にした場合)

<?php 
add_action('after_setup_theme', 'remove_featured_images_from_child_theme', 11); 

function remove_featured_images_from_child_theme() { 

    // This will remove support 
    remove_theme_support('wc-product-gallery-zoom'); 
    remove_theme_support('wc-product-gallery-lightbox'); 
    remove_theme_support('wc-product-gallery-slider'); 
} 
?> 
あなたの子テーマのfunctions.phpのに使用します
関連する問題