Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ?php
- // WooCommerce - Move product excerpt below the image
- remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_excerpt', 20 );
- add_action( 'woocommerce_before_single_product_summary', 'start_left_side', 5 );
- function start_left_side() {
- print '<div class="left_side">'.PHP_EOL;
- }
- add_action( 'woocommerce_before_single_product_summary', 'woocommerce_template_single_excerpt', 30 );
- add_action( 'woocommerce_before_single_product_summary', 'end_left_side', 40 );
- function end_left_side() {
- print '<div class="clear"></div>'.PHP_EOL;
- print '</div>'.PHP_EOL;
- }
- ?>
- <style>
- .left_side {
- float: left;
- width: 40%;
- }
- .single-product div.product .woocommerce-product-gallery {
- width: 100% !important;
- }
- .woocommerce-product-details__short-description {
- clear: both;
- float: left;
- }
- .clear {
- clear: both;
- }
- </style>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement