Forked from damiencarbery/move-variations-above-short-description.php
Created
February 22, 2020 06:03
-
-
Save KoolPal/d2f4dd6cd7f9f8b785538e0e69f921c0 to your computer and use it in GitHub Desktop.
Move Variations above Short Description - https://www.facebook.com/groups/advanced.woocommerce/permalink/2114573521890389/
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
<?php | |
/* | |
Plugin Name: Move Variations above Short Description | |
Plugin URI: https://www.facebook.com/groups/advanced.woocommerce/permalink/2114573521890389/ | |
Description: Move the variations and Add to Cart to be above the short description. | |
Author: Damien Carbery | |
Author URI: https://www.damiencarbery.com | |
Version: 0.1 | |
*/ | |
add_action( 'woocommerce_before_single_product', 'change_single_product_layout' ); | |
function change_single_product_layout() { | |
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 30 ); | |
add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 15 ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment