2017-07-07 5 views
0

Wie zu deaktivieren;Deaktivierungsfunktion in Wordpress Kindthema

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

in Wordpress Eltern Theme Funktionen.php aus dem Kind Thema? Bitte helfen!

Antwort

0

wird diese Unterstützung entfernen und in Ihrem Child Theme functions.php Verwenden

<?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'); 
} 
?> 
(falls Thema Kind sonst in Mutter Thema function.php setzen activate)