Last active
January 5, 2016 07:56
-
-
Save wpbean/381607921b84ade87792 to your computer and use it in GitHub Desktop.
WPB WooCommerce LightBox { Replace popup short description with full description }
This file contains 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 | |
/* Add the following code to your theme functions.php file */ | |
add_action( 'init', 'remove_wpb_wl_excerpt' ); | |
function remove_wpb_wl_excerpt(){ | |
remove_action( 'wpb_wl_woocommerce_product_summary', 'woocommerce_template_single_excerpt', 20 ); | |
add_action( 'wpb_wl_woocommerce_product_summary', 'wpb_wl_get_the_content', 20 ); | |
} | |
function wpb_wl_get_the_content(){ | |
echo wpautop(get_the_content()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment