• Resolved toughleather2019

    (@toughleather2019)


    I want to edit the single product page by adding some USPs with small icons below the “add to cart” button. How can i do this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Look for the content-single-product.php file which applies to your site.

    See if it exists at:
    wp-content/themes/<parent or child theme name>/woocommerce/content-simple-product.php
    if not, look at the woocommerce version at:
    wp-content/plugins/woocommerce/templates/content-simple-product.php

    In the case of the default woocommerce version, note that add-to-cart is hooked at priority 30, so you can go in just below that using:

    add_action( 'woocommerce_single_product_summary', 'custom_usps', 34 );
    function custom_usps() {
      print '....';
    }
    

    Your function is best placed in functions.php for your child theme, though it may work with a php-snippets plugin.

    Thread Starter toughleather2019

    (@toughleather2019)

    perfect! how can I add an Icon or image to this? just its URL?

    print '<img src="http:// image link here ">';

    Plugin Support AW a11n

    (@slash1andy)

    Automattic Happiness Engineer

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Edit Single Product Page’ is closed to new replies.