Skip to content

Instantly share code, notes, and snippets.

@Perun
Last active September 15, 2017 14:16
Embed
What would you like to do?
Aktiviert Lightbox-Funktion in WordPress-Themes, die WooCommerce nicht unterstützen:
<?php
add_action( 'after_setup_theme', 'name_des_themes' );
function name_des_themes() {
add_theme_support( 'wc-product-gallery-zoom' );
add_theme_support( 'wc-product-gallery-lightbox' );
add_theme_support( 'wc-product-gallery-slider' );
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment