Created
December 5, 2013 00:11
-
-
Save shazdeh/7797982 to your computer and use it in GitHub Desktop.
Flatshop: display content in the product lightbox instead of the product description text
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function product_lightbox_full_text() { | |
if( themify_theme_is_product_lightbox() ) { | |
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_excerpt', 20 ); | |
add_action( 'woocommerce_single_product_summary', 'the_content', 20 ); | |
} | |
} | |
add_action( 'init', 'product_lightbox_full_text' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment