Skip to content

Instantly share code, notes, and snippets.

@bryanrsebastian
Created March 21, 2023 23:39
Show Gist options
  • Save bryanrsebastian/59469c813a25adc3a132fdd9c9ba85a7 to your computer and use it in GitHub Desktop.
Save bryanrsebastian/59469c813a25adc3a132fdd9c9ba85a7 to your computer and use it in GitHub Desktop.
Move the product main description oustide of the tab
/* 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