Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #544340

    Hi

    I’m using WP 4.3.1, Enfold 3.4.3 and Woocommerce 2.4.10 and need to place a shortcode below the product description and images on the single product page in WordPress so that it shows across 100% of the main content width – but can’t seem to get it in the right area. It’s either above the description area or below the related products. I have looked everywhere but can’t get it right.

    Can you assist please?

    Thanks in advance

    #544678

    Hi cbentley65!

    Your probably wanting the “woocommerce_before_single_product” hook. Something like this should work.

    add_action( 'woocommerce_before_single_product', 'enfold_customization_extra_product_content', 15 );
    function enfold_customization_extra_product_content() {
        echo do_shortcode("[your_shortcode]");
    }

    Regards,
    Elliott

    #544685

    Hi Elliott

    Many thanks – that puts the shortcode output *above* the product images and description. Is there a way to get it below, but before the related products, please?

    It does display it full 100% width though.

    Thanks again

    #544693

    Hey!

    Send us a link to your page so we can take a look. You can set your reply as private if you wish.

    Regards,
    Elliott

    #544695

    Hi Elliott

    I have sorted it with the woocommerce_after_single_product_summary hook!

    Thanks again

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Add shortcode below product’ is closed to new replies.