Created
March 21, 2023 23:39
-
-
Save bryanrsebastian/59469c813a25adc3a132fdd9c9ba85a7 to your computer and use it in GitHub Desktop.
Move the product main description oustide of the tab
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
/* Move the product main description oustide of the tab */ | |
function move_product_description() { | |
global $woocommerce, $post; | |
if ( $post->post_content ) : ?> | |
<div itemprop="description" class="item-description"> | |
<?php $heading = apply_filters('woocommerce_product_description_heading', __('Product Description', 'woocommerce')); ?> | |
<!-- <h2><?php echo $heading; ?></h2> --> | |
<?php the_content(); ?> | |
</div> | |
<?php endif; | |
} | |
add_action( 'woocommerce_single_product_summary', 'move_product_description', 20 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment