• Resolved mattborgman

    (@mattborgman)


    I am using the Storefront theme and would like to move the short description below the add to cart button.

    I have tried the following which is also what I find when researching online. This does not work.

    
    <?php
    
    function add_and_remove() {
        remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_excerpt', 20 );
        add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_excerpt', 35 );
    }
    
    add_action( 'init' , 'add_and_remove', 15);
    

    Any suggestions would be greatly appreciated.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Works for me with Storefront.

    The styles on your page reveal the short description is being hidden by something siteground is doing. Can you flush the siteground cache, or turn it off while you are testing the code.

    Thread Starter mattborgman

    (@mattborgman)

    @lorro – I can try again. I forgot that you would be looking at the page for reference and I went in and just hid the short description and arranged the .woocommerce-Tabs-panel–description to be in the correct spot. So I do have a work around. But maybe I just need to re-upload the functions file with that code from above and flush the cache as you suggested. Either way for now I have a solution. Thank you for letting me know it works on Storefront, I thought I was missing something / doing something wrong.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Moving Add to Cart Above Short Description’ is closed to new replies.