Last active
October 10, 2018 18:22
-
-
Save gerdneuman/d1c10b5953d928832ff5bf6f781dc689 to your computer and use it in GitHub Desktop.
child theme stuff
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
/* 2015-04-19: Also do not print gallery on /shop/ - because does not work with long list | |
* see http://www.kadencethemes.com/support-forums/topic/remove-gallery-shortcode-from-product-short-description/#post-38868 */ | |
function remove_shortcode_from_shop( $content ){ | |
if ( is_shop() ) { | |
$content = strip_shortcodes(wpautop(wptexturize( $content ))); | |
} | |
return $content; | |
} | |
add_filter( 'archive_woocommerce_short_description', 'remove_shortcode_from_shop', 9 ); | |
remove_filter( 'archive_woocommerce_short_description', 'do_shortcode', 11 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment